From 40684396d4d085200b5a2f267f7d02ec47786cc2 Mon Sep 17 00:00:00 2001 From: SuperMaskv Date: Tue, 20 Dec 2022 15:43:09 +0800 Subject: [PATCH 1/3] improve Chinese support --- frontend/i18n/zh/generic.js | 1 + frontend/i18n/zh/home.js | 8 +++++++- frontend/i18n/zh/projects/labels.js | 6 +++--- frontend/i18n/zh/projects/links.js | 6 ++++++ frontend/i18n/zh/projects/overview.js | 10 +++++----- frontend/i18n/zh/projects/settings.js | 2 +- 6 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 frontend/i18n/zh/projects/links.js diff --git a/frontend/i18n/zh/generic.js b/frontend/i18n/zh/generic.js index e8fbd5ad..e764a108 100644 --- a/frontend/i18n/zh/generic.js +++ b/frontend/i18n/zh/generic.js @@ -10,6 +10,7 @@ export default { upload: '上传', add: '增加', delete: '删除', + deleteAll: '全部删除', search: '搜索', name: '名称', import: '导入', diff --git a/frontend/i18n/zh/home.js b/frontend/i18n/zh/home.js index 7124e357..ad89729b 100644 --- a/frontend/i18n/zh/home.js +++ b/frontend/i18n/zh/home.js @@ -14,5 +14,11 @@ export default { demoNER: '命名实体识别', demoSent: '情感分析', demoTranslation: '文本翻译', - demoTextToSQL: '语义解析Text-to-SQL' + demoTextToSQL: '语义解析Text-to-SQL', + demoIntenDetectSlotFil: '意图识别与槽位填充', + demoImageClas: '图像分类', + demoImageCapt: '图像描述', + demoObjDetect: '目标检测', + demoPolygSegm: '多边形图像分割', + demoSTT: '语音识别' } diff --git a/frontend/i18n/zh/projects/labels.js b/frontend/i18n/zh/projects/labels.js index 03df11f8..e702637a 100644 --- a/frontend/i18n/zh/projects/labels.js +++ b/frontend/i18n/zh/projects/labels.js @@ -7,9 +7,9 @@ export default { exportLabels: '导出标签', labelName: '标签名', labelMessage: '请输入标签名', - createLink: 'Create Link', - linkName: 'Link name', - linkMessage: 'Link name is required', + createLink: '创建连接', + linkName: '连接名称', + linkMessage: '请输入连接名称', key: '键', deleteLabel: '删除标签', deleteMessage: '你确定要从这个项目中删除这些标签吗', diff --git a/frontend/i18n/zh/projects/links.js b/frontend/i18n/zh/projects/links.js new file mode 100644 index 00000000..f45d6f81 --- /dev/null +++ b/frontend/i18n/zh/projects/links.js @@ -0,0 +1,6 @@ +export default { + createLink: '创建连接', + linkName: '连接名称', + linkMessage: '请输入连接名称' +} + \ No newline at end of file diff --git a/frontend/i18n/zh/projects/overview.js b/frontend/i18n/zh/projects/overview.js index 3eb7efbd..0b736a05 100644 --- a/frontend/i18n/zh/projects/overview.js +++ b/frontend/i18n/zh/projects/overview.js @@ -15,11 +15,11 @@ export default { '文本分类', '序列标注', '序列到序列', - '意图检测和槽填充', + '意图识别与槽位填充', '图像分类', - '图像说明', - '对象检测', - '分割', - '文字转语音' + '图像描述', + '目标检测', + '图像分割', + '语音识别' ] } diff --git a/frontend/i18n/zh/projects/settings.js b/frontend/i18n/zh/projects/settings.js index 966e6918..044a8a56 100644 --- a/frontend/i18n/zh/projects/settings.js +++ b/frontend/i18n/zh/projects/settings.js @@ -1,3 +1,3 @@ export default { - title: 'Settings' + title: '设置' } From 598b6efa80ff6e08e8b3c11a63a28ac1d558b6ea Mon Sep 17 00:00:00 2001 From: SuperMaskv Date: Tue, 20 Dec 2022 19:11:47 +0800 Subject: [PATCH 2/3] reformat links.js --- frontend/i18n/zh/projects/links.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/i18n/zh/projects/links.js b/frontend/i18n/zh/projects/links.js index f45d6f81..fc9a177e 100644 --- a/frontend/i18n/zh/projects/links.js +++ b/frontend/i18n/zh/projects/links.js @@ -1,6 +1,5 @@ export default { - createLink: '创建连接', - linkName: '连接名称', - linkMessage: '请输入连接名称' + createLink: '创建连接', + linkName: '连接名称', + linkMessage: '请输入连接名称' } - \ No newline at end of file From 28d069cc4ebbfd83a3419fa8078e0140d1a4b2c1 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 21 Dec 2022 11:53:20 +0900 Subject: [PATCH 3/3] Apply linter --- frontend/i18n/zh/projects/links.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/i18n/zh/projects/links.js b/frontend/i18n/zh/projects/links.js index fc9a177e..a1f12eb5 100644 --- a/frontend/i18n/zh/projects/links.js +++ b/frontend/i18n/zh/projects/links.js @@ -1,5 +1,5 @@ -export default { - createLink: '创建连接', - linkName: '连接名称', - linkMessage: '请输入连接名称' -} +export default { + createLink: '创建连接', + linkName: '连接名称', + linkMessage: '请输入连接名称' +}