Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Oct 6, 2023
1 parent 7bafcf9 commit 8abc8ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,15 @@
<v-spacer />
<v-menu
attach
bottom
offset-y
>
<template #activator="{ on: menu }">
<template #activator="{ props }">
<v-btn
:aria-label="$t('message.languages')"
text
style="min-width: 48px"
v-on="menu"
v-bind="props"
>
<v-icon>fa-language</v-icon>
<v-icon>fas fa-language</v-icon>
</v-btn>
</template>
<v-list
Expand Down Expand Up @@ -120,6 +118,10 @@ export default {
drawer: null,
tools: [],
installed_templates: {},
languages: [
{ value: 'en', text: 'English' },
{ value: 'zh', text: '中文' },
]
}),
created: function () {
this.$root.$app = this;
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"setting": "Setting | Settings",
"management": "Management",
"add_repeat": "Add Item",
"remove_repeat": "Remove Item {index}"
"remove_repeat": "Remove Item {index}",
"languages": "Languages"
}
}
3 changes: 2 additions & 1 deletion src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"setting": "设置",
"management": "管理",
"add_repeat": "添加新项",
"remove_repeat": "移除第{index}项"
"remove_repeat": "移除第{index}项",
"languages": "语言"
}
}

0 comments on commit 8abc8ac

Please sign in to comment.