1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-05 21:45:30 +02:00

Fix language detection for some browsers

This commit is contained in:
Maksim Eltyshev 2020-04-11 01:02:08 +05:00
parent fd707b6da5
commit 202abacaec
8 changed files with 148 additions and 28 deletions

View file

@ -88,8 +88,6 @@ i18n.loadAppLocale = (language) =>
});
});
setDefaultLocale(i18n.language);
i18n.on('languageChanged', (language) => {
setDefaultLocale(language);
});

View file

@ -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]);