2022-03-02 15:44:01 +01:00
|
|
|
import { getLanguageName } from './languages';
|
|
|
|
|
2021-04-06 21:15:08 +02:00
|
|
|
// supported_browser_languages
|
2019-10-15 17:37:55 +02:00
|
|
|
const SUPPORTED_LANGUAGES = {
|
2022-03-02 15:44:01 +01:00
|
|
|
af: getLanguageName('af'),
|
|
|
|
en: getLanguageName('en'),
|
|
|
|
da: getLanguageName('da'),
|
|
|
|
'zh-Hans': getLanguageName('zh-Hans'),
|
|
|
|
'zh-Hant': getLanguageName('zh-Hant'),
|
|
|
|
hr: getLanguageName('hr'),
|
|
|
|
nl: getLanguageName('nl'),
|
|
|
|
no: getLanguageName('no'),
|
|
|
|
fi: getLanguageName('fi'),
|
|
|
|
fr: getLanguageName('fr'),
|
|
|
|
de: getLanguageName('de'),
|
|
|
|
gu: getLanguageName('gu'),
|
|
|
|
hi: getLanguageName('hi'),
|
|
|
|
hu: getLanguageName('hu'),
|
|
|
|
id: getLanguageName('id'),
|
|
|
|
ja: getLanguageName('ja'),
|
|
|
|
jv: getLanguageName('jv'),
|
|
|
|
it: getLanguageName('it'),
|
|
|
|
ms: getLanguageName('ms'),
|
|
|
|
ml: getLanguageName('ml'),
|
|
|
|
mr: getLanguageName('mr'),
|
|
|
|
pa: getLanguageName('pa'),
|
|
|
|
pl: getLanguageName('pl'),
|
|
|
|
pt: getLanguageName('pt'),
|
|
|
|
'pt-BR': getLanguageName('pt-BR'),
|
|
|
|
ro: getLanguageName('ro'),
|
|
|
|
ru: getLanguageName('ru'),
|
|
|
|
sr: getLanguageName('sr'),
|
|
|
|
sk: getLanguageName('sk'),
|
|
|
|
th: getLanguageName('th'),
|
|
|
|
ur: getLanguageName('ur'),
|
|
|
|
ca: getLanguageName('ca'),
|
|
|
|
es: getLanguageName('es'),
|
|
|
|
sv: getLanguageName('sv'),
|
|
|
|
tl: getLanguageName('tl'),
|
|
|
|
tr: getLanguageName('tr'),
|
|
|
|
cs: getLanguageName('cs'),
|
|
|
|
kn: getLanguageName('kn'),
|
|
|
|
uk: getLanguageName('uk'),
|
|
|
|
vi: getLanguageName('vi'),
|
|
|
|
ar: getLanguageName('ar'),
|
2019-10-15 17:37:55 +02:00
|
|
|
};
|
|
|
|
|
2020-06-10 19:03:15 +02:00
|
|
|
// Properties: language code (e.g. 'ja')
|
|
|
|
// Values: name of the language in native form (e.g. '日本語')
|
2019-10-15 17:37:55 +02:00
|
|
|
export default SUPPORTED_LANGUAGES;
|