--- layout: post title: Polyglot 1.3.0 lang: zh-CN --- Polyglot 的全新版本现已推出。去试试吧! {% highlight yaml %} gem install jekyll-polyglot {% endhighlight %} 本次发布得益于以下 GitHub 用户的支持: * [vlsi](https://github.com/vlsi) * [pserwylo](https://github.com/pserwylo) ### 递归式合并不同语言特定的 `site.data` 现在,在你的 `site.data` 目录下的特定语言内容将会递归地被合并在一起。也就是说,`active_lang` 的内容会优先于 `default_lang` 的内容呈现,也就是优先于非特定语言的内容。([#59](https://github.com/untra/polyglot/pull/59)) ### 未指定语言的文件仍然会被写入 `default_lang` 的站点根目录 如果没有在 `languages` 中定义 `default_lang`,本功能会确保没有指定语言的文件(也就是被排除在本地化之外的文件)仍然会被写入站点根目录。([#65](https://github.com/untra/polyglot/pull/65)) ### `i18n_headers` 性能提升以及修复 现在,文档处理速度更快了。此外,修复了 `site.url` 被定义时的 `i18n_headers` 处理。([#67](https://github.com/untra/polyglot/pull/67)) ### 自定义站点配置文件中的 `active_lang` 键 这将允许 `active_lang` 使用自定义的键,使 Polyglot 可以和其他的插件与主题更好地配合使用。([#68](https://github.com/untra/polyglot/pull/68))