File: 2020-04-29-polyglot-1.3.2.md

package info (click to toggle)
ruby-jekyll-polyglot 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,196 kB
  • sloc: xml: 1,500; ruby: 947; sh: 10; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
layout: post
title: Polyglot 1.3.2
lang: en
---

Polyglot [version 1.3.2](https://rubygems.org/gems/jekyll-polyglot/versions/1.3.1) has been released! Give it a try!

{% highlight yaml %}
gem install jekyll-polyglot
{% endhighlight %}

This release was made possible with the support of the following github user
* [eighthave](https://github.com/eighthave)

### `lang_from_path` setting to derive document lang from relative path

This release adds a new boolean configuration setting `lang_from_path`. When set to true, this option tells polyglot to derive the base language from a matching subpath if the lang frontmatter is not set. This setting works well in conjunction with other translation maintenance tools such as [po4a](https://po4a.org/).

### relative and absolute url relativization improved logic

`excluded_from_localization` files will have trailing slashes added to their paths if they are directories. In addition, these files will be matched differently in the relativize and absolute url regex matchers. This will improve the accuracy of url relativization based on user feedback.