Skip to content

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

2 participants