You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improves the detectLocale function to better take sub-locales into account. This is necessary when dealing with e.g. Chinese, where zh_HK is a different language from zh_CN. Now, it will compare the list from window.navigator.languages (which returns something like ['de-AT', 'de', 'en']) with the list of allowed locales, and tries to pick the best one.
The service also exposes this functionality in a new function guessBrowserLocale().