Skip to content

Commit dcddf8a

Browse files
author
yuchenyao
committed
表格国际化
1 parent 04bc1d6 commit dcddf8a

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

web/src/commonData/i18n/common/en.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,19 @@
114114
"department": "Department",
115115
"selectDepartment": "Please Select Department",
116116
"label": "Label",
117-
"addLabel": "Add label",
117+
"addLabel": "Add Label",
118118
"description": "Description",
119119
"pleaseInputWorkspaceDesc": "Please Input Workspace Description",
120-
"createdSuccess": "Created failed!",
120+
"createdSuccess": "Successfully created!",
121121
"createdFailed": "Created failed!",
122-
"display": "Display"
122+
"display": "Display",
123+
"tableDisplay": "Table",
124+
"cardDisplay": "Card",
125+
"createTime": "CreateTime"
123126
},
124127
"GLY": {
125128
"ALTY": "Demos",
126-
"KSRM": "Quick start",
129+
"KSRM": "Quick Start",
127130
"HYP": "Change"
128131
},
129132
"workflow": {

web/src/commonData/i18n/common/zh.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@
120120
"pleaseInputWorkspaceDesc": "请输入工作空间描述",
121121
"createdSuccess": "工作空间创建成功!",
122122
"createdFailed": "工作空间创建失败!",
123-
"display": "展示方式"
123+
"display": "展示方式",
124+
"tableDisplay": "列表展示",
125+
"cardDisplay": "图标展示",
126+
"createTime": "创建时间"
124127
},
125128
"GLY": {
126129
"ALTY": "案例体验",

web/src/js/view/newhome/module/workspace/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<li v-if="tag && tagIndex <= 2" class="item" :key="tagIndex">{{tag}}</li>
6161
</template>
6262
</ul>
63-
<Button size="small" class="editor" @click.stop="editor(item)">{{ $t('message.workspace.editWorkspace') }}</Button>
63+
<!-- <Button size="small" class="editor" @click.stop="editor(item)">{{ $t('message.workspace.editWorkspace') }}</Button> -->
6464
</i-col>
6565
</Row>
6666
<div v-show="visual === 'table'" class="workspace-table">
@@ -140,8 +140,8 @@ export default {
140140
videos: [],
141141
videoCache: [],
142142
visualCates: [
143-
{ name: 'table', title: '列表展示' },
144-
{ name: 'card', title: '图标展示' }
143+
{ name: 'table', title: this.$t('message.workspace.tableDisplay') },
144+
{ name: 'card', title: this.$t('message.workspace.cardDisplay') }
145145
],
146146
total: null,
147147
pageSize: 4,

web/src/js/view/newhome/module/workspace/module/workspaceTable.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ export default {
3535
tableData: [],
3636
columns: [
3737
{
38-
title: '名称',
38+
title: this.$t('message.workspace.workName'),
3939
slot: 'name'
4040
},
4141
{
42-
title: '创建日期',
42+
title: this.$t('message.workspace.createTime'),
4343
slot: 'createTime',
4444
sortable: true
4545
},
4646
{
47-
title: '标签',
47+
title: this.$t('message.workspace.label'),
4848
slot: 'label'
4949
},
5050
{
51-
title: '描述',
51+
title: this.$t('message.workspace.description'),
5252
slot: 'description',
5353
ellipsis: true
5454
}

0 commit comments

Comments
 (0)