Skip to content
Snippets Groups Projects
Verified Commit 3b3ac24c authored by magicfelix's avatar magicfelix
Browse files

Use original language name plus code in selection menu

parent d25cbc10
No related branches found
No related tags found
1 merge request!1173Use original language name plus code in selection menu
......@@ -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",
};
......
......@@ -3,6 +3,7 @@
availableLanguages {
code
nameTranslated
nameLocal
cookie
}
sitePreferences {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment