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:
parent
fd707b6da5
commit
202abacaec
8 changed files with 148 additions and 28 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue