Merge pull request #5295 from lbryio/languagesbad

language map fix
This commit is contained in:
jessopb 2021-01-11 18:16:12 -05:00 committed by GitHub
commit d3b53f69da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,39 +1,37 @@
import LANGUAGES from './languages';
const SUPPORTED_BROWSER_LANGUAGES = {
en: LANGUAGES.en[1],
da: LANGUAGES.da[1],
'zh-CN': LANGUAGES['zh-Hans'][1],
'zh-TW': LANGUAGES['zh-Hant'][1],
'zh-Hans': LANGUAGES['zh-Hans'][1],
'zh-Hant': LANGUAGES['zh-Hant'][1],
hr: LANGUAGES.hr[1],
nl: LANGUAGES.nl[1],
fr: LANGUAGES.fr[1],
de: LANGUAGES.de[1],
gu: LANGUAGES.gu[1],
hi: LANGUAGES.hi[1],
id: LANGUAGES.id[1],
jv: LANGUAGES.jv[1],
it: LANGUAGES.it[1],
ms: LANGUAGES.ms[1],
ml: LANGUAGES.ml[1],
mr: LANGUAGES.mr[1],
pa: LANGUAGES.pa[1],
pl: LANGUAGES.pl[1],
pt: LANGUAGES.pt[1],
ro: LANGUAGES.ro[1],
ru: LANGUAGES.ru[1],
sr: LANGUAGES.sr[1],
sk: LANGUAGES.sk[1],
ur: LANGUAGES.ur[1],
ca: LANGUAGES.ca[1],
es: LANGUAGES.es[1],
sv: LANGUAGES.sv[1],
tr: LANGUAGES.tr[1],
cs: LANGUAGES.cs[1],
kn: LANGUAGES.kn[1],
uk: LANGUAGES.uk[1],
en: 'en',
da: 'da',
'zh-CN': 'zh-Hans',
'zh-TW': 'zh-Hant',
'zh-Hans': 'zh-Hans',
'zh-Hant': 'zh-Hant',
hr: 'hr',
nl: 'nl',
fr: 'fr',
de: 'de',
gu: 'gu',
hi: 'hi',
id: 'id',
jv: 'jv',
it: 'it',
ms: 'ms',
ml: 'ml',
mr: 'mr',
pa: 'pa',
pl: 'pl',
pt: 'pt',
ro: 'ro',
ru: 'ru',
sr: 'sr',
sk: 'sk',
ur: 'ur',
ca: 'ca',
es: 'es',
sv: 'sv',
tr: 'tr',
cs: 'cs',
kn: 'kn',
uk: 'uk',
};
// Properties: language code (e.g. 'ja')