Join page new design implemented
This commit is contained in:
parent
70270f450c
commit
7224b20cab
18 changed files with 403 additions and 254 deletions
21
src/components/languageMixin.js
Normal file
21
src/components/languageMixin.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
languages: [],
|
||||
activeLang:null,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getLanguages() {
|
||||
return this.languages;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
for (const locale of Object.keys(this.$i18n.messages)) {
|
||||
this.languages.push({
|
||||
text: this.$i18n.messages[locale].language_display_name || locale,
|
||||
value: locale,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue