I have a multilingual website: fr, en and es
My defaultContentLanguage is fr
I use a hugo module for a admin section, without translation, only i18n/en.yml file available for this module.
As I am in defaultContentLanguagefr it tries to find french translation (i18n/fr.yml) but it does not exist and unfortunately therefore does not fallback on the i18n/en.yml.
So I end up with empty texts.
If you try to translate something in OTHER and that is not defined it will use DEFAULT.
That for me states:
the admin page for ALL languages is in english only
You don’t want to translate it
so for me that statement now does not make much sense:
IF you define all admin relevant texts (that might in future be translated) in the DEFAULT language. And don’t set them in any OTHER. Then all OTHER will use that DEFAULT because of the fallback.
Another option would be to handle the language switcher to always link to the english page.
I don’t think you can have different default language based on section/page level
thank you for this precious time spent to answer me
I like this way of doing {{ or (T "foo_key") "foo_value" }}, to secursise translation.
But I would find it interesting to have a defaultContentLanguage for a module or a theme. This would allow people who do not have a common defaultContentLanguage for their site to have a placeholder no matter what.
e.g: If I take the example of the Ananke theme and than my site is in Korean defaultContentLanguage, I will have empty texts.