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
+3 -2
View File
@@ -45,7 +45,8 @@
</f7-actions-group>
</f7-actions>
<list-item-selection-sheet value-type="index"
<list-item-selection-sheet value-type="item"
value-field="languageTag"
title-field="displayName"
:items="allLanguages"
v-model:show="showChangeLocaleSheet"
@@ -81,7 +82,7 @@ export default {
computed: {
...mapStores(useTransactionCategoriesStore),
allLanguages() {
return this.$locale.getAllLanguageInfos();
return this.$locale.getAllLanguageInfoArray(false);
},
allPresetCategories() {
return this.$locale.getAllTransactionDefaultCategories(this.categoryType, this.currentLocale);