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

Default language doesn't reside on it's own folder

Open andreamoro opened this issue 7 years ago • 4 comments

Apologies for repeating something known if any, but I'm fairly new to Jekyll. Currently using 3.5.2, which I noticed has not been mentioned as supported as of yet.

I need the default language - which I assume to be the first one listed in the collection - to reside under it's own separate folder. In my case I've a ["it", "en"] collection, but only the "en" subfolder is created under the _site subfolder.

Any idea?

andreamoro avatar Sep 17 '17 16:09 andreamoro

Yep, I had the same problem. It's an implementation detail of the library. I got around by specifying:

["en", "en", "fr"]

This generates a folder en and fr, and also generates the "default" files as en. Hope this helps.

emmerich avatar Dec 02 '17 18:12 emmerich

would be cool if there is a more elegant way to handle this.

eg. you have subfolder_for_default_lang: true in your config and it generates subfolders for all languages. Nice would be if / would redirect to /default_lang via <meta http-equiv="refresh" content="0; URL=/default_lang/">

ygd avatar Mar 20 '18 07:03 ygd

All languages should be in subfolders. It makes no sense to have a "special role" for the default language. One should use forwarding based on user agent from the domain.com/home to domain.com/language/home.

levino avatar Apr 03 '19 09:04 levino

Could be duplicated with #86 See the Klassnotfound fix.

bpatra avatar Apr 03 '19 11:04 bpatra