Multi Index but why so Weird, only work with en-US?

im trying to create multi index with site hierarchy :

/root
...../content/post/default-language-post.md
................../en/english-language-post.md
...../themes/mythemes/layout/index.html
............................................../lindex.en.html

config.toml :


[outputFormats.enFormat]
mediaType = "text/html"
baseName = "en"
[outputs]
  home = ["enFormat", "HTML", "AMP", "RSS", "LunrIndexJson" ]

and my Index (Homepage) hxxps://site.com/ its showing

.../index.en.html 
.../en/english-language-post.md

not

.../index.html
.../post/default-language-post.md

then hxxps://site.com/en/ just viceversa its showing index.html (default).

but when i change en to en-US or english or en-us or anything its work.

i dont know why… is this bug?

and how to fix this problem? because i dont like en-US or english its make my URL too long and ugly.

thank before :slight_smile:

Is there any reason you can’t do this?

[languages.en]
contentDir = 'content/en'
languageCode = 'en-US'
languageName = 'English'

Dates, currency, etc. will still be localized for English, though not as specific as providing language+locale.