Open mkpoli opened 2 months ago
this is a great issue description. thank you. i'll create an issue in the inlang sdk to save incoming language tags in lower case to ensure consistency.
Here is the issue. Once the inlang sdk solves the issue, the problem should be gone https://github.com/opral/inlang-message-sdk/issues/115.
PS the inlang sdk is going through a refactor atm. Will take some time till it is implemented
When we use paraglide-init for a list of languages to support, it will automatically regularize the string so that all letter are in lower case, for example
ko-Kore
becomesko-kore
andzh-HanT
becomeszh-hant
. However, when you add a new language from Fink settings, the regularization is not triggered (implemented), so if you inputko-Kore
it will be kept asko-Kore
which makes inconsistency across inlang infrastructure.BCP 47 and RFCs specified that letter casing of language tag must never be differentiated, albeit conventions similar to
zh-Hant-TW
are recommended for readability. However, for paraglide, usually the language tag will be involved as a part of a url, which are usually lower cased, so it is also understandable to normalize to lowercase.I think we should either enforce lowercasing in Fink, or disable the enforcement in paraglide-init