opral / inlang-fink

Issue tracker for fink
0 stars 0 forks source link

Inconsistent behavior for letter-casing in adding language in Fink and paraglide-init #40

Open mkpoli opened 2 months ago

mkpoli commented 2 months ago

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 becomes ko-kore and zh-HanT becomes zh-hant. However, when you add a new language from Fink settings, the regularization is not triggered (implemented), so if you input ko-Kore it will be kept as ko-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

samuelstroschein commented 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.

samuelstroschein commented 2 months ago

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