Restore lost languages (#5972)
While looking at the next RC, I noticed the new languages were lost. I recall the new language commit included some refactoring which had to be reverted due to some webpack issue. Re-add those languages in the old (non-refactored) method.
This commit is contained in:
parent
fe86010be5
commit
cba369a5ce
2 changed files with 10 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
const SUPPORTED_BROWSER_LANGUAGES = {
|
const SUPPORTED_BROWSER_LANGUAGES = {
|
||||||
|
af: 'af',
|
||||||
en: 'en',
|
en: 'en',
|
||||||
da: 'da',
|
da: 'da',
|
||||||
'zh-CN': 'zh-Hans',
|
'zh-CN': 'zh-Hans',
|
||||||
|
@ -9,11 +10,13 @@ const SUPPORTED_BROWSER_LANGUAGES = {
|
||||||
nl: 'nl',
|
nl: 'nl',
|
||||||
no: 'no',
|
no: 'no',
|
||||||
fi: 'fi',
|
fi: 'fi',
|
||||||
|
fil: 'fil',
|
||||||
fr: 'fr',
|
fr: 'fr',
|
||||||
de: 'de',
|
de: 'de',
|
||||||
gu: 'gu',
|
gu: 'gu',
|
||||||
hi: 'hi',
|
hi: 'hi',
|
||||||
id: 'id',
|
id: 'id',
|
||||||
|
ja: 'ja',
|
||||||
jv: 'jv',
|
jv: 'jv',
|
||||||
it: 'it',
|
it: 'it',
|
||||||
ms: 'ms',
|
ms: 'ms',
|
||||||
|
@ -27,6 +30,7 @@ const SUPPORTED_BROWSER_LANGUAGES = {
|
||||||
ru: 'ru',
|
ru: 'ru',
|
||||||
sr: 'sr',
|
sr: 'sr',
|
||||||
sk: 'sk',
|
sk: 'sk',
|
||||||
|
th: 'th',
|
||||||
ur: 'ur',
|
ur: 'ur',
|
||||||
ca: 'ca',
|
ca: 'ca',
|
||||||
es: 'es',
|
es: 'es',
|
||||||
|
@ -35,6 +39,7 @@ const SUPPORTED_BROWSER_LANGUAGES = {
|
||||||
cs: 'cs',
|
cs: 'cs',
|
||||||
kn: 'kn',
|
kn: 'kn',
|
||||||
uk: 'uk',
|
uk: 'uk',
|
||||||
|
vi: 'vi',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default SUPPORTED_BROWSER_LANGUAGES;
|
export default SUPPORTED_BROWSER_LANGUAGES;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import LANGUAGES from './languages';
|
import LANGUAGES from './languages';
|
||||||
// supported_browser_languages
|
// supported_browser_languages
|
||||||
const SUPPORTED_LANGUAGES = {
|
const SUPPORTED_LANGUAGES = {
|
||||||
|
af: LANGUAGES.af[1],
|
||||||
en: LANGUAGES.en[1],
|
en: LANGUAGES.en[1],
|
||||||
da: LANGUAGES.da[1],
|
da: LANGUAGES.da[1],
|
||||||
'zh-Hans': LANGUAGES['zh-Hans'][1],
|
'zh-Hans': LANGUAGES['zh-Hans'][1],
|
||||||
|
@ -9,11 +10,13 @@ const SUPPORTED_LANGUAGES = {
|
||||||
nl: LANGUAGES.nl[1],
|
nl: LANGUAGES.nl[1],
|
||||||
no: LANGUAGES.no[1],
|
no: LANGUAGES.no[1],
|
||||||
fi: LANGUAGES.fi[1],
|
fi: LANGUAGES.fi[1],
|
||||||
|
fil: LANGUAGES.fil[1],
|
||||||
fr: LANGUAGES.fr[1],
|
fr: LANGUAGES.fr[1],
|
||||||
de: LANGUAGES.de[1],
|
de: LANGUAGES.de[1],
|
||||||
gu: LANGUAGES.gu[1],
|
gu: LANGUAGES.gu[1],
|
||||||
hi: LANGUAGES.hi[1],
|
hi: LANGUAGES.hi[1],
|
||||||
id: LANGUAGES.id[1],
|
id: LANGUAGES.id[1],
|
||||||
|
ja: LANGUAGES.ja[1],
|
||||||
jv: LANGUAGES.jv[1],
|
jv: LANGUAGES.jv[1],
|
||||||
it: LANGUAGES.it[1],
|
it: LANGUAGES.it[1],
|
||||||
ms: LANGUAGES.ms[1],
|
ms: LANGUAGES.ms[1],
|
||||||
|
@ -27,6 +30,7 @@ const SUPPORTED_LANGUAGES = {
|
||||||
ru: LANGUAGES.ru[1],
|
ru: LANGUAGES.ru[1],
|
||||||
sr: LANGUAGES.sr[1],
|
sr: LANGUAGES.sr[1],
|
||||||
sk: LANGUAGES.sk[1],
|
sk: LANGUAGES.sk[1],
|
||||||
|
th: LANGUAGES.th[1],
|
||||||
ur: LANGUAGES.ur[1],
|
ur: LANGUAGES.ur[1],
|
||||||
ca: LANGUAGES.ca[1],
|
ca: LANGUAGES.ca[1],
|
||||||
es: LANGUAGES.es[1],
|
es: LANGUAGES.es[1],
|
||||||
|
@ -35,6 +39,7 @@ const SUPPORTED_LANGUAGES = {
|
||||||
cs: LANGUAGES.cs[1],
|
cs: LANGUAGES.cs[1],
|
||||||
kn: LANGUAGES.kn[1],
|
kn: LANGUAGES.kn[1],
|
||||||
uk: LANGUAGES.uk[1],
|
uk: LANGUAGES.uk[1],
|
||||||
|
vi: LANGUAGES.vi[1],
|
||||||
};
|
};
|
||||||
|
|
||||||
// Properties: language code (e.g. 'ja')
|
// Properties: language code (e.g. 'ja')
|
||||||
|
|
Loading…
Reference in a new issue