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
Unsupported locales #54
Comments
Hi @dewrano! Currently there is no way how to disable the sanitizer, but you have probably found a bug. This lib should work even without standard locales - in that case should only warn and use lower-cased form of the input locale. I'll try to fix this in the next couple of days, thanks.) |
Ok, this does not yield any error https://github.com/sveltekit-i18n/base/blob/a5df0f1c63b23504e7dbcbe7a62461f573a78149/src/utils.ts#L32 for |
Will be included in |
@jarda-svoboda Thank you for the quick response. I've updated to 2.1.3 and now I see new warnings, but I still can't seem to get it to work. When I print out |
Oh, that’s weird… there are tests for it and it worked..🤔 https://github.com/sveltekit-i18n/base/blob/master/tests/specs/index.spec.ts#L138 i’ll look at it again soon..! |
It seems there is a difference between Node's and JS's |
@jarda-svoboda Thank you so much, I can confirm it works. :) |
Hi
I'm not sure but I think this method filters away unsupported locales:
https://github.com/sveltekit-i18n/base/blob/a5df0f1c63b23504e7dbcbe7a62461f573a78149/src/utils.ts#L26
I'm trying to add the Kurdish language ("ku"), but unfortunately, it's not supported when I try to run this:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/supportedLocalesOf
Is there a way for us to disable the sanitizer?
The text was updated successfully, but these errors were encountered: