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 array input #204

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

kaisermann
Copy link
Owner

@kaisermann kaisermann commented Nov 19, 2022

Closes #202

Allows one to pass an array of locales to the $locale store, similar to what you get from navigator.languages.

@kaisermann
Copy link
Owner Author

i'm not sure what to do with the initialLocale though. I didn't make it support an array yet. To find the locale that needs to be loaded from an array of locales, we use the ones already registered in the dictionary (via addMessages or register). However, it's not guaranteed that the dictionary will have those when one executes init, as this is usually the first method to be executed.

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

Successfully merging this pull request may close these issues.

Support an array of locales to set the current locale
1 participant