Fix language detection for some browsers
This commit is contained in:
@@ -88,8 +88,6 @@ i18n.loadAppLocale = (language) =>
|
||||
});
|
||||
});
|
||||
|
||||
setDefaultLocale(i18n.language);
|
||||
|
||||
i18n.on('languageChanged', (language) => {
|
||||
setDefaultLocale(language);
|
||||
});
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import fromPairs from 'lodash/fromPairs';
|
||||
|
||||
import enUS from './en-US/embed';
|
||||
import ruRU from './ru-RU/embed';
|
||||
import en from './en/embed';
|
||||
import ru from './ru/embed';
|
||||
|
||||
const localePairs = [
|
||||
['en-US', enUS],
|
||||
['ru-RU', ruRU],
|
||||
['en', en],
|
||||
['ru', ru],
|
||||
];
|
||||
|
||||
export const languages = localePairs.map((locale) => locale[0]);
|
||||
|
||||
Reference in New Issue
Block a user