Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mkpoli opened this issue Jul 19, 2024 · 2 comments

Comments

@mkpoli
Copy link

mkpoli commented Jul 19, 2024

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

Copy link
Member

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.

Copy link
Member

Here is the issue. Once the inlang sdk solves the issue, the problem should be gone opral/inlang-sdk#115.

PS the inlang sdk is going through a refactor atm. Will take some time till it is implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants