Langague codes are used in multiple places, starting with transfiex typically lang locale is sepreated by _ but in code - is used.
One main of the inconsistente is that how TX have langauge code vs how MFEs refer to them.
If opreator would want to override a langauge strings, they would need to know how they set/referred to in MFEs, but that might not the same code in TX.
In the above code - is used to override lang per locale, but in TX we have _ as shown in screenshot below, also in the latter UPPERCASE is used:
The outcome of this issue is:
Should we stick with - or _
Are alll langauges locale inclued in account settings _for example user can select it but notit_IT of which the latter is the one with the most completion_
Langague codes are used in multiple places, starting with transfiex typically lang locale is sepreated by
_
but in code-
is used.One main of the inconsistente is that how TX have langauge code vs how MFEs refer to them.
If opreator would want to override a langauge strings, they would need to know how they set/referred to in MFEs, but that might not the same code in TX.
https://github.com/openedx/frontend-app-account/blob/5ce3995f5b59a81ace25844ed9646f969b4a4874/src/i18n/index.js#L21-L38
In the above code
-
is used to override lang per locale, but in TX we have_
as shown in screenshot below, also in the latter UPPERCASE is used:The outcome of this issue is:
-
or_
it
but notit_IT
of which the latter is the one with the most completion_