-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Open
Milestone
Description
With #14225 we now look for:
- A translation table matching the current language's
LanguageCode(new behavior), falling back to... - A translation table matching the current language's key, falling back to...
- A translation table matching the
defaultContentLanguage
That means that you can now do this, which is great:
defaultContentLanguage = 'en'
[languages.en]
languageCode = 'en-US'
weight = 1
[languages.de]
languageCode = 'de-DE'
weight = 2i18n/
├── de-de.toml
└── en-us.toml
But for the last fallback (item 3 in the list above) to work, you must also have an en.toml file in the i18n directory, which isn't great. We should fallback to a translation table matching the LanguageCode of the defaultContentLanguage, then to a translation table matching the defaultContentLanguage.
cc: @chalin