show language name in current language

This commit is contained in:
MaysWind
2024-10-07 19:58:58 +08:00
parent 368322f906
commit 011020a945
13 changed files with 52 additions and 41 deletions
@@ -17,8 +17,8 @@
v-bind="props">{{ currentLanguageName }}</v-btn>
</template>
<v-list>
<v-list-item :key="locale" :value="locale" v-for="(lang, locale) in allLanguages">
<v-list-item-title class="cursor-pointer" @click="currentLocale = locale">
<v-list-item :key="lang.languageTag" :value="lang.languageTag" v-for="lang in allLanguages">
<v-list-item-title class="cursor-pointer" @click="currentLocale = lang.languageTag">
{{ lang.displayName }}
</v-list-item-title>
</v-list-item>
@@ -110,7 +110,7 @@ export default {
}
},
allLanguages() {
return this.$locale.getAllLanguageInfos();
return this.$locale.getAllLanguageInfoArray(false);
},
allPresetCategories() {
return this.$locale.getAllTransactionDefaultCategories(this.categoryType, this.currentLocale);