Merge branch '649-duplicated-languages-on-the-language-list' into 'dev'
Resolve "Duplicated Languages on the Language list" See merge request keanuapp/keanuapp-weblite!356
This commit is contained in:
commit
a742e8f53b
30 changed files with 34 additions and 32 deletions
|
|
@ -3,7 +3,38 @@ export default {
|
|||
return {
|
||||
languages: [],
|
||||
activeLang:null,
|
||||
displayLanguage: ['en','bo','zh_Hans','ug']
|
||||
displayLanguage: ['en','bo','zh_Hans','ug'],
|
||||
languageDisplayName: {
|
||||
"ar": "العربية",
|
||||
"bn": "বাংলা",
|
||||
"bo": "བོད་ཡིག",
|
||||
"de": "Deutsch",
|
||||
"en": "English",
|
||||
"es_419": "Español (Latinoamérica)",
|
||||
"es_CU": "Español (Cuba)",
|
||||
"es": "Español",
|
||||
"fa_AF": "دری",
|
||||
"fa": "فارسی",
|
||||
"fi": "suomi",
|
||||
"fr": "français",
|
||||
"ga": "Gaeilge",
|
||||
"it": "italiano",
|
||||
"km": "ខ្មែរ",
|
||||
"ku": "Kurdî",
|
||||
"lo": "ລາວ",
|
||||
"my": "မြန်မာ",
|
||||
"nb_NO": "Norsk",
|
||||
"ps": "پښتو",
|
||||
"pt_BR": "Português (Brasil)",
|
||||
"pt_PT": "Português (Portugal)",
|
||||
"ro": "Română",
|
||||
"ru": "Русский",
|
||||
"si": "සිංහල",
|
||||
"tr": "Türkçe",
|
||||
"ug": "ئۇيغۇرچە",
|
||||
"uk": "Українська",
|
||||
"zh_Hans": "简体中文"
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -19,8 +50,8 @@ export default {
|
|||
const context = this
|
||||
for (const locale of Object.keys(this.$i18n.messages)) {
|
||||
this.languages.push({
|
||||
title: this.$i18n.messages[locale].language_display_name || locale,
|
||||
text: this.$i18n.messages[locale].language_display_name || locale,
|
||||
title: this.languageDisplayName[locale],
|
||||
text: this.languageDisplayName[locale],
|
||||
value: locale,
|
||||
display: context.displayLanguage.includes(locale)
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue