Skip to content

Commit

Permalink
locale for new category (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiveer authored Jan 19, 2025
1 parent 8a7fff2 commit 32d5eac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
10 changes: 5 additions & 5 deletions frontend/src/components/admin_next/tags/AdminTagsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@
<!-- new category dialog -->
<el-dialog
v-model="dialogFormVisible"
title="New Category"
:title="$t('admin.tags.newCategory')"
width="500"
>
<el-form :model="newCategoryForm">
<el-form-item label="scope">
<el-form-item :label="$t('admin.tags.scope')">
<el-select
v-model="newCategoryForm.scope"
size="large"
placeholder="scope name">
:placeholder="$t('admin.tags.scope')">
<el-option
label="model"
value="model"></el-option>
Expand All @@ -156,13 +156,13 @@
value="space"></el-option>
</el-select>
</el-form-item>
<el-form-item label="name">
<el-form-item :label="$t('admin.tags.name')">
<el-input
v-model="newCategoryForm.name"
size="large"
></el-input>
</el-form-item>
<el-form-item label="show_name">
<el-form-item :label="$t('admin.tags.showName')">
<el-input
v-model="newCategoryForm.show_name"
size="large"
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/locales/en_js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export const admin = {
newCategoryBtn: "New Category",
editCancelBtn: 'Cancel',
editConfirmBtn: 'Confirm',
newCategory: 'New Category',
scope: 'Scope',
name: 'Name',
showName: 'ZH Name'
},
tagCategories: {
title: 'Tag Category Management',
Expand All @@ -62,6 +66,6 @@ export const admin = {
name: 'Name',
showName: 'Show Name',
scope: 'Scope',
enabled: 'Enabled',
enabled: 'Enabled'
}
}
4 changes: 4 additions & 0 deletions frontend/src/locales/zh_js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export const admin = {
newCategoryBtn: "新建分类",
editCancelBtn: '取消',
editConfirmBtn: '确认',
newCategory: '新建标签分类',
scope: '项目类别',
name: '名称',
showName: '中文名称'
},
tagCategories: {
title: '标签分类管理',
Expand Down

0 comments on commit 32d5eac

Please sign in to comment.