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

Support locale without country code. #63

Open
palexs opened this issue Jun 29, 2020 · 0 comments
Open

Support locale without country code. #63

palexs opened this issue Jun 29, 2020 · 0 comments

Comments

@palexs
Copy link

palexs commented Jun 29, 2020

I'm wondering how can I use the plugin and ignore the country code? The idea is that in my app I want to support let's say Russian language. The locale would be ru-RU, but if a user is located in Ukraine his or her locale would be ru-UA meaning that I'll have to add another json (ru-UA.json) and copy all the contents from ru-RU.json which leads to code duplication. This might easily get even more ugly, if I wanted to account for Belarus and add another locale - ru-BY.json and copy the same strings once again. Is there a way to just specify language code (e.g. ru.json) and call it a day ignoring country code?

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