Skip to content
Snippets Groups Projects

Use original language name plus code in selection menu

Merged magicfelix requested to merge language-menu-translations into master
All threads resolved!
Files
3
@@ -3,7 +3,7 @@
v-if="availableLanguages"
v-model="language"
:items="availableLanguages"
item-text="nameTranslated"
:item-text="nameForMenu"
item-value="code"
menu-props="auto"
outlined
@@ -40,6 +40,9 @@ export default {
this.$i18n.locale = languageOption.code;
this.$vuetify.lang.current = languageOption.code;
},
nameForMenu: function(item) {
return `${item.nameLocal} (${item.code})`;
},
},
name: "LanguageForm",
};
Loading