jekyll-multiple-languages-plugin icon indicating copy to clipboard operation
jekyll-multiple-languages-plugin copied to clipboard

Syntax for Translating Collections

Open miteshgala opened this issue 8 years ago • 3 comments

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 avatar Jul 10 '17 23:07 miteshgala

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

miteshgala avatar Jul 11 '17 12:07 miteshgala

Check out my attempt to get translated collections working here:

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

andrewhilts avatar Jul 21 '17 18:07 andrewhilts

Also looking for collection support.

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

justingeeslin avatar Nov 10 '20 03:11 justingeeslin