Resolve "Join page language display, rtl & ltr fixes for safari browser"
This commit is contained in:
parent
a6870a78d4
commit
920fceac26
4 changed files with 34 additions and 18 deletions
|
|
@ -3,18 +3,25 @@ export default {
|
|||
return {
|
||||
languages: [],
|
||||
activeLang:null,
|
||||
displayLanguage: ['en','bo','zh_Hans','ug']
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getLanguages() {
|
||||
return this.languages;
|
||||
},
|
||||
updateLanguage(lang) {
|
||||
this.$i18n.locale = lang;
|
||||
this.$store.commit('setLanguage', lang);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
const context = this
|
||||
for (const locale of Object.keys(this.$i18n.messages)) {
|
||||
this.languages.push({
|
||||
text: this.$i18n.messages[locale].language_display_name || locale,
|
||||
value: locale,
|
||||
display: context.displayLanguage.includes(locale)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue