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

Error for languages with country code #2

Open
MoroseCorpse opened this issue Jul 24, 2022 · 1 comment
Open

Error for languages with country code #2

MoroseCorpse opened this issue Jul 24, 2022 · 1 comment

Comments

@MoroseCorpse
Copy link

I have the problem that I would like to separate the languages additionally on the basis of the country codes. So e.g. en-US or en_US

However, unfortunately, this does not work. If I use en_US, the messages are loaded, but plurals are ignored.

If I use en-US instead, it doesn't work at all and I only get the key back.

The errors occur both when I load the messages from a JSON file or pass them directly into the code.

@MoroseCorpse
Copy link
Author

MoroseCorpse commented Jul 24, 2022

#3
This is how it works for me now. But I don't know if I broke something else by doing that

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

1 participant