Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locale for new category new #908

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading