Update src/i18n.js

pull/4692/head
Frank Elsinga 3 weeks ago committed by GitHub
parent 3794bd5e51
commit f5e2c4d6cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -66,7 +66,7 @@ export function currentLocale() {
for (const locale of [ localStorage.locale, navigator.language, ...navigator.languages ]) {
// localstorage might not have a value or there might not be a language in `navigator.language`
if (!locale) {
continue
continue;
}
if (locale in messages) {
return locale;

Loading…
Cancel
Save