Multilingual collections


#1

I have a site that is multilingual. So far everything works, even the posts and switching between languages.

/en/
/en/_posts/
/en/_posts/2017-02-02-my-post.md
/en/about.html
/nl/
/nl/_posts/
/nl/_posts/2017-02-02-mijn-post.md
/nl/over-ons.html

but what with collections?
If i want the collections to be translated, just like the posts, i would need to have this:

/en/_mycollection
/en/_mycollection/file.md
and
/nl/_mycollection
/nl/_mycollection/file.md

The collection needs to be outputted, so it can be reached like this:
/en/mycollection/file.html
/nl/mycollection/file.html

Can’t find any help… search google for hours, but without success. Anyone care to help me?

Note: i don’t use a plugin for this multilingual site…


#2

This seems a good resource:

defaults:

scope:
  path: "_products/fr"
values:
  permalink: "/fr/produits/:title"
  lang: "fr"

found it here… for now it seems to work…