kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
925 stars 202 forks source link

Syntax for Translating Collections #99

Open miteshgala opened 7 years ago

miteshgala commented 7 years ago

I've tried many combinations of syntax to translate a collection. I would very much appreciate if someone can post a working example.

I have the following in my config.yml -

collections: cookies: output: true layout: cookies

My cookies folder in: _i18n/en/_cookies

I'm trying to read the collection using various permutations of the example below, with no success:

{% for item in site[site.lang].cookies %}

Any help is greatly appreciated.

miteshgala commented 7 years ago

I've also tried placing the collections folder in the root of the site with no success: _cookies

andrewhilts commented 7 years ago

Check out my attempt to get translated collections working here:

https://github.com/Anthony-Gaudino/jekyll-multiple-languages-plugin/issues/72#issuecomment-317072673

justingeeslin commented 3 years ago

Also looking for collection support.

Moving the collection inside the _i18n folder does not seem to enable the collection.