-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
locale is transformed to lowercase #81
Comments
Locale is not transformed to lowercase (actually in your case is), but to ISO 639-1 Language Code and I think this is a correct behavior, because you want to be able to use Don’t know your exact use case, but I think you could use transformed store derived from the original |
And would it be possible to at least add option to the config, if the transformation to ISO 639-1 Language Code should be enabled or not? I think I am not the only one who is migrating from svelte-i18n and who might find this automatic transformation causing a lot of breaking changes. |
That’s a good point… Could you, please, provide some small repro? Just to see what exactly causes the issue… I’ll provide some solution for use cases like this.) |
I am working on pretty big project reworking it from svetle-i18n and we are using locale when saving items to database, so previously we saved every locale in uppercase format and now if i implement this package it breaks everything across the project, because it transforms current locale to lowercase. I think that locale should be kept in same format as it is defined in loaders (key locale).
The text was updated successfully, but these errors were encountered: