diff --git a/frontend/i18n/index.js b/frontend/i18n/index.js index a25b8e40..be51924a 100644 --- a/frontend/i18n/index.js +++ b/frontend/i18n/index.js @@ -6,6 +6,12 @@ export default { iso: 'en-CA', file: 'en' }, + { + name: '中文', + code: 'zh', + iso: 'zh-CA', + file: 'zh' + }, { name: 'Français', code: 'fr', diff --git a/frontend/i18n/zh/generic.js b/frontend/i18n/zh/generic.js new file mode 100644 index 00000000..e8fbd5ad --- /dev/null +++ b/frontend/i18n/zh/generic.js @@ -0,0 +1,20 @@ +export default { + continue: '继续', + yes: '是', + all: '全部', + save: '保存', + edit: '编辑', + create: '创建', + cancel: '取消', + close: '关闭', + upload: '上传', + add: '增加', + delete: '删除', + search: '搜索', + name: '名称', + import: '导入', + export: '导出', + description: '描述', + type: '类型', + loading: '加载中... 请等待' +} diff --git a/frontend/i18n/zh/header.js b/frontend/i18n/zh/header.js new file mode 100644 index 00000000..9f50d6ab --- /dev/null +++ b/frontend/i18n/zh/header.js @@ -0,0 +1,3 @@ +export default { + projects: '项目' +} diff --git a/frontend/i18n/zh/home.js b/frontend/i18n/zh/home.js new file mode 100644 index 00000000..7124e357 --- /dev/null +++ b/frontend/i18n/zh/home.js @@ -0,0 +1,18 @@ +export default { + mainTitle: '文本标注平台', + getStarted: '快速开始', + startAnnotation: '开始标注', + featuresTitle: '最大特色', + featuresTitle1: '团队合作', + featuresText1: '与你的团队标注', + featuresTitle2: '任何语言', + featuresText2: '用任何语言标注', + featuresTitle3: '免费开源', + featuresText3: '免费可自定义', + footerTitle: '尽快实现你的想法', + demoDropDown: '试一试', + demoNER: '命名实体识别', + demoSent: '情感分析', + demoTranslation: '文本翻译', + demoTextToSQL: '语义解析Text-to-SQL' +} diff --git a/frontend/i18n/zh/index.js b/frontend/i18n/zh/index.js new file mode 100644 index 00000000..0f1ae8e6 --- /dev/null +++ b/frontend/i18n/zh/index.js @@ -0,0 +1,35 @@ +import home from './home' +import header from './header' +import generic from './generic' +import rules from './rules' +import toastui from './toastui' +import user from './user' +import vuetify from './vuetify' +import annotation from './projects/annotation' +import dataset from './projects/dataset' +import errors from './projects/errors' +import guideline from './projects/guideline' +import projectHome from './projects/home' +import labels from './projects/labels' +import members from './projects/members' +import overview from './projects/overview' +import statistics from './projects/statistics' + +export default { + home, + header, + generic, + rules, + toastui, + user, + vuetify, + annotation, + dataset, + errors, + guideline, + projectHome, + labels, + members, + overview, + statistics +} diff --git a/frontend/i18n/zh/projects/annotation.js b/frontend/i18n/zh/projects/annotation.js new file mode 100644 index 00000000..dd142a54 --- /dev/null +++ b/frontend/i18n/zh/projects/annotation.js @@ -0,0 +1,14 @@ +export default { + checkedTooltip: '已选', + notCheckedTooltip: '未选', + selectFilterTooltip: '过滤', + filterOption1: '全部', + filterOption2: '已标注', + filterOption3: '未标注', + guidelineTooltip: '显示指南', + guidelinePopupTitle: '标注指南', + metadataDefaultMessage: '没有数据可获得', + key: '键', + value: '值', + newText: '下一条' +} diff --git a/frontend/i18n/zh/projects/dataset.js b/frontend/i18n/zh/projects/dataset.js new file mode 100644 index 00000000..f3046a89 --- /dev/null +++ b/frontend/i18n/zh/projects/dataset.js @@ -0,0 +1,19 @@ +export default { + dataset: '数据集', + actions: '操作', + importDataset: '导入数据集', + exportDataset: '导出数据集', + text: '文本', + metadata: '元数据', + action: '操作', + annotate: '标注', + importDataTitle: '上传数据', + importDataMessage1: '选择文件格式', + importDataMessage2: '选择一个文件', + importDataPlaceholder: '请导入文件', + exportDataTitle: '导出数据', + exportDataMessage: '请选择文件格式', + deleteDocumentsTitle: '删除文档', + deleteDocumentsMessage: '你确定要从这个项目中删除这些文档吗?', + pageText: '{0}-{1} of {2}' +} diff --git a/frontend/i18n/zh/projects/errors.js b/frontend/i18n/zh/projects/errors.js new file mode 100644 index 00000000..933160e3 --- /dev/null +++ b/frontend/i18n/zh/projects/errors.js @@ -0,0 +1,5 @@ +export default { + fileCannotUpload: '这个文件不能被上传,获取格式错误,请仔细检查文件格式', + labelCannotCreate: '这个标签不能被创建,你可能在其它的键上用了相同的标签名', + invalidUserOrPass: '用户名或者密码不正确' +} diff --git a/frontend/i18n/zh/projects/guideline.js b/frontend/i18n/zh/projects/guideline.js new file mode 100644 index 00000000..dedb79b6 --- /dev/null +++ b/frontend/i18n/zh/projects/guideline.js @@ -0,0 +1,4 @@ +export default { + guideline: '指南', + writeGuidelinePrompt: '请写入标注指南' +} diff --git a/frontend/i18n/zh/projects/home.js b/frontend/i18n/zh/projects/home.js new file mode 100644 index 00000000..63d9faf4 --- /dev/null +++ b/frontend/i18n/zh/projects/home.js @@ -0,0 +1,11 @@ +export default { + home: '主页', + welcome: '欢迎进入数据标注平台', + importData: '导入数据集', + createLabels: '为这个项目创建标签名', + addMembers: '添加成员', + defineGuideline: '定义指南', + annotateDataset: '标注数据集', + viewStatistics: '查看统计', + exportDataset: '导出数据集' +} diff --git a/frontend/i18n/zh/projects/labels.js b/frontend/i18n/zh/projects/labels.js new file mode 100644 index 00000000..47e2a846 --- /dev/null +++ b/frontend/i18n/zh/projects/labels.js @@ -0,0 +1,17 @@ +export default { + labels: '标签', + shortkey: '短键', + color: '颜色', + createLabel: '创建标签', + importLabels: '导入标签', + exportLabels: '导出标签', + labelName: '标签名', + labelMessage: '请输入标签名', + key: '键', + deleteLabel: '删除标签', + deleteMessage: '你确定要从这个项目中删除这些标签吗', + importTitle: '导入标签', + importMessage1: '样例格式', + importMessage2: '请选择一个文件', + filePlaceholder: '输入文件' +} diff --git a/frontend/i18n/zh/projects/members.js b/frontend/i18n/zh/projects/members.js new file mode 100644 index 00000000..2ce9a525 --- /dev/null +++ b/frontend/i18n/zh/projects/members.js @@ -0,0 +1,16 @@ +export default { + members: '成员', + role: '角色', + updateRole: '更行角色', + addMember: '添加成员', + userSearchAPIs: '用户搜索接口', + userSearchPrompt: '开始搜索', + removeMember: '移除成员', + removePrompt: '你确定要移除当前成员吗?', + roles: { + projectAdmin: '项目管理员', + annotator: '标注员', + annotationApprover: '审查员', + undefined: '角色未定义' + } +} diff --git a/frontend/i18n/zh/projects/overview.js b/frontend/i18n/zh/projects/overview.js new file mode 100644 index 00000000..5a74b10b --- /dev/null +++ b/frontend/i18n/zh/projects/overview.js @@ -0,0 +1,19 @@ +export default { + createProjectTitle: '添加项目', + projectName: '项目名称', + projectType: '项目类型', + textClassification: '文本分类', + sequenceLabeling: '序列标注', + sequenceToSequence: '序列到序列', + randomizeDocOrder: '随机文档顺序', + shareAnnotations: '在所有用户共享标注', + delete: '删除', + deleteProjectTitle: '删除项目', + deleteProjectMessage: '你确定要删除这些项目吗?', + search: '搜索', + projectTypes: [ + '文本分类', + '序列标注', + '序列到序列' + ] +} diff --git a/frontend/i18n/zh/projects/statistics.js b/frontend/i18n/zh/projects/statistics.js new file mode 100644 index 00000000..602c70ce --- /dev/null +++ b/frontend/i18n/zh/projects/statistics.js @@ -0,0 +1,9 @@ +export default { + statistics: '统计', + progress: [ + '已完成', + '未完成' + ], + labelStats: '标签统计', + userStats: '用户统计' +} diff --git a/frontend/i18n/zh/rules.js b/frontend/i18n/zh/rules.js new file mode 100644 index 00000000..23914714 --- /dev/null +++ b/frontend/i18n/zh/rules.js @@ -0,0 +1,38 @@ +export default { + colorRules: { + colorRequired: '请输入颜色' + }, + labelNameRules: { + labelRequired: '请输入名称', + labelLessThan30Chars: '名称必须少于30个字符' + }, + userNameRules: { + userNameRequired: '请输入用户名', + userNameLessThan30Chars: '用户名必须少于30个字符' + }, + roleRules: { + roleRequired: '请输入角色' + }, + projectNameRules: { + projectNameRequired: '请输入项目名称', + projectNameLessThan30Chars: '项目名称必须少于30个字符' + }, + descriptionRules: { + descriptionRequired: '请输入描述', + descriptionLessThan30Chars: '描述必须少于100个字符' + }, + projectTypeRules: { + projectTypeRequired: '请输入项目类型' + }, + fileFormatRules: { + fileFormatRequired: '请输入文件类型' + }, + uploadFileRules: { + fileRequired: '请输入文件', + fileLessThan1MB: '文件大小必须小于 1 MB!' + }, + passwordRules: { + passwordRequired: '请输入密码', + passwordLessThan30Chars: '密码必须小于30个字符' + } +} diff --git a/frontend/i18n/zh/toastui.js b/frontend/i18n/zh/toastui.js new file mode 100644 index 00000000..7d8afa93 --- /dev/null +++ b/frontend/i18n/zh/toastui.js @@ -0,0 +1,3 @@ +export default { + localeCode: 'zh_CN' +} diff --git a/frontend/i18n/zh/user.js b/frontend/i18n/zh/user.js new file mode 100644 index 00000000..d1b571ca --- /dev/null +++ b/frontend/i18n/zh/user.js @@ -0,0 +1,6 @@ +export default { + login: '登录', + signOut: '注销', + username: '用户名', + password: '密码' +} diff --git a/frontend/i18n/zh/vuetify.js b/frontend/i18n/zh/vuetify.js new file mode 100644 index 00000000..8f6d2420 --- /dev/null +++ b/frontend/i18n/zh/vuetify.js @@ -0,0 +1,4 @@ +export default { + itemsPerPageText: '每页最多可显示', + noDataAvailable: '没有数据可获得' +} diff --git a/frontend/i18n/zh/zh/generic.js b/frontend/i18n/zh/zh/generic.js new file mode 100644 index 00000000..e8fbd5ad --- /dev/null +++ b/frontend/i18n/zh/zh/generic.js @@ -0,0 +1,20 @@ +export default { + continue: '继续', + yes: '是', + all: '全部', + save: '保存', + edit: '编辑', + create: '创建', + cancel: '取消', + close: '关闭', + upload: '上传', + add: '增加', + delete: '删除', + search: '搜索', + name: '名称', + import: '导入', + export: '导出', + description: '描述', + type: '类型', + loading: '加载中... 请等待' +} diff --git a/frontend/i18n/zh/zh/header.js b/frontend/i18n/zh/zh/header.js new file mode 100644 index 00000000..9f50d6ab --- /dev/null +++ b/frontend/i18n/zh/zh/header.js @@ -0,0 +1,3 @@ +export default { + projects: '项目' +} diff --git a/frontend/i18n/zh/zh/home.js b/frontend/i18n/zh/zh/home.js new file mode 100644 index 00000000..a08eb781 --- /dev/null +++ b/frontend/i18n/zh/zh/home.js @@ -0,0 +1,18 @@ +export default { + mainTitle: '让文本标注服务人类', + getStarted: '快速开始', + startAnnotation: '开始标注', + featuresTitle: '功能特性', + featuresTitle1: '团队合作', + featuresText1: '与你的团队标注', + featuresTitle2: '任何语言', + featuresText2: '用任何语言标注', + featuresTitle3: '免费开源', + featuresText3: '标注免费可自定义', + footerTitle: '尽快实现你的想法', + demoDropDown: '试一试', + demoNER: '命名实体识别', + demoSent: '情感分析', + demoTranslation: '文本翻译', + demoTextToSQL: '语义解析Text-to-SQL' +} diff --git a/frontend/i18n/zh/zh/index.js b/frontend/i18n/zh/zh/index.js new file mode 100644 index 00000000..0f1ae8e6 --- /dev/null +++ b/frontend/i18n/zh/zh/index.js @@ -0,0 +1,35 @@ +import home from './home' +import header from './header' +import generic from './generic' +import rules from './rules' +import toastui from './toastui' +import user from './user' +import vuetify from './vuetify' +import annotation from './projects/annotation' +import dataset from './projects/dataset' +import errors from './projects/errors' +import guideline from './projects/guideline' +import projectHome from './projects/home' +import labels from './projects/labels' +import members from './projects/members' +import overview from './projects/overview' +import statistics from './projects/statistics' + +export default { + home, + header, + generic, + rules, + toastui, + user, + vuetify, + annotation, + dataset, + errors, + guideline, + projectHome, + labels, + members, + overview, + statistics +} diff --git a/frontend/i18n/zh/zh/projects/annotation.js b/frontend/i18n/zh/zh/projects/annotation.js new file mode 100644 index 00000000..dd142a54 --- /dev/null +++ b/frontend/i18n/zh/zh/projects/annotation.js @@ -0,0 +1,14 @@ +export default { + checkedTooltip: '已选', + notCheckedTooltip: '未选', + selectFilterTooltip: '过滤', + filterOption1: '全部', + filterOption2: '已标注', + filterOption3: '未标注', + guidelineTooltip: '显示指南', + guidelinePopupTitle: '标注指南', + metadataDefaultMessage: '没有数据可获得', + key: '键', + value: '值', + newText: '下一条' +} diff --git a/frontend/i18n/zh/zh/projects/dataset.js b/frontend/i18n/zh/zh/projects/dataset.js new file mode 100644 index 00000000..f3046a89 --- /dev/null +++ b/frontend/i18n/zh/zh/projects/dataset.js @@ -0,0 +1,19 @@ +export default { + dataset: '数据集', + actions: '操作', + importDataset: '导入数据集', + exportDataset: '导出数据集', + text: '文本', + metadata: '元数据', + action: '操作', + annotate: '标注', + importDataTitle: '上传数据', + importDataMessage1: '选择文件格式', + importDataMessage2: '选择一个文件', + importDataPlaceholder: '请导入文件', + exportDataTitle: '导出数据', + exportDataMessage: '请选择文件格式', + deleteDocumentsTitle: '删除文档', + deleteDocumentsMessage: '你确定要从这个项目中删除这些文档吗?', + pageText: '{0}-{1} of {2}' +} diff --git a/frontend/i18n/zh/zh/projects/errors.js b/frontend/i18n/zh/zh/projects/errors.js new file mode 100644 index 00000000..933160e3 --- /dev/null +++ b/frontend/i18n/zh/zh/projects/errors.js @@ -0,0 +1,5 @@ +export default { + fileCannotUpload: '这个文件不能被上传,获取格式错误,请仔细检查文件格式', + labelCannotCreate: '这个标签不能被创建,你可能在其它的键上用了相同的标签名', + invalidUserOrPass: '用户名或者密码不正确' +} diff --git a/frontend/i18n/zh/zh/projects/guideline.js b/frontend/i18n/zh/zh/projects/guideline.js new file mode 100644 index 00000000..dedb79b6 --- /dev/null +++ b/frontend/i18n/zh/zh/projects/guideline.js @@ -0,0 +1,4 @@ +export default { + guideline: '指南', + writeGuidelinePrompt: '请写入标注指南' +} diff --git a/frontend/i18n/zh/zh/projects/home.js b/frontend/i18n/zh/zh/projects/home.js new file mode 100644 index 00000000..63d9faf4 --- /dev/null +++ b/frontend/i18n/zh/zh/projects/home.js @@ -0,0 +1,11 @@ +export default { + home: '主页', + welcome: '欢迎进入数据标注平台', + importData: '导入数据集', + createLabels: '为这个项目创建标签名', + addMembers: '添加成员', + defineGuideline: '定义指南', + annotateDataset: '标注数据集', + viewStatistics: '查看统计', + exportDataset: '导出数据集' +} diff --git a/frontend/i18n/zh/zh/projects/labels.js b/frontend/i18n/zh/zh/projects/labels.js new file mode 100644 index 00000000..341b72e0 --- /dev/null +++ b/frontend/i18n/zh/zh/projects/labels.js @@ -0,0 +1,17 @@ +export default { + labels: '标签', + shortkey: '键', + color: '颜色', + createLabel: '创建标签', + importLabels: '创建标签', + exportLabels: '导出标签', + labelName: '标签名', + labelMessage: '请输入标签名', + key: 'Key', + deleteLabel: '删除标签', + deleteMessage: '你确定要从这个项目中删除这些标签吗', + importTitle: '导入标签', + importMessage1: '样例格式', + importMessage2: '请选择一个文件', + filePlaceholder: '输入文件' +} diff --git a/frontend/i18n/zh/zh/projects/members.js b/frontend/i18n/zh/zh/projects/members.js new file mode 100644 index 00000000..2ce9a525 --- /dev/null +++ b/frontend/i18n/zh/zh/projects/members.js @@ -0,0 +1,16 @@ +export default { + members: '成员', + role: '角色', + updateRole: '更行角色', + addMember: '添加成员', + userSearchAPIs: '用户搜索接口', + userSearchPrompt: '开始搜索', + removeMember: '移除成员', + removePrompt: '你确定要移除当前成员吗?', + roles: { + projectAdmin: '项目管理员', + annotator: '标注员', + annotationApprover: '审查员', + undefined: '角色未定义' + } +} diff --git a/frontend/i18n/zh/zh/projects/overview.js b/frontend/i18n/zh/zh/projects/overview.js new file mode 100644 index 00000000..5a74b10b --- /dev/null +++ b/frontend/i18n/zh/zh/projects/overview.js @@ -0,0 +1,19 @@ +export default { + createProjectTitle: '添加项目', + projectName: '项目名称', + projectType: '项目类型', + textClassification: '文本分类', + sequenceLabeling: '序列标注', + sequenceToSequence: '序列到序列', + randomizeDocOrder: '随机文档顺序', + shareAnnotations: '在所有用户共享标注', + delete: '删除', + deleteProjectTitle: '删除项目', + deleteProjectMessage: '你确定要删除这些项目吗?', + search: '搜索', + projectTypes: [ + '文本分类', + '序列标注', + '序列到序列' + ] +} diff --git a/frontend/i18n/zh/zh/projects/statistics.js b/frontend/i18n/zh/zh/projects/statistics.js new file mode 100644 index 00000000..602c70ce --- /dev/null +++ b/frontend/i18n/zh/zh/projects/statistics.js @@ -0,0 +1,9 @@ +export default { + statistics: '统计', + progress: [ + '已完成', + '未完成' + ], + labelStats: '标签统计', + userStats: '用户统计' +} diff --git a/frontend/i18n/zh/zh/rules.js b/frontend/i18n/zh/zh/rules.js new file mode 100644 index 00000000..23914714 --- /dev/null +++ b/frontend/i18n/zh/zh/rules.js @@ -0,0 +1,38 @@ +export default { + colorRules: { + colorRequired: '请输入颜色' + }, + labelNameRules: { + labelRequired: '请输入名称', + labelLessThan30Chars: '名称必须少于30个字符' + }, + userNameRules: { + userNameRequired: '请输入用户名', + userNameLessThan30Chars: '用户名必须少于30个字符' + }, + roleRules: { + roleRequired: '请输入角色' + }, + projectNameRules: { + projectNameRequired: '请输入项目名称', + projectNameLessThan30Chars: '项目名称必须少于30个字符' + }, + descriptionRules: { + descriptionRequired: '请输入描述', + descriptionLessThan30Chars: '描述必须少于100个字符' + }, + projectTypeRules: { + projectTypeRequired: '请输入项目类型' + }, + fileFormatRules: { + fileFormatRequired: '请输入文件类型' + }, + uploadFileRules: { + fileRequired: '请输入文件', + fileLessThan1MB: '文件大小必须小于 1 MB!' + }, + passwordRules: { + passwordRequired: '请输入密码', + passwordLessThan30Chars: '密码必须小于30个字符' + } +} diff --git a/frontend/i18n/zh/zh/toastui.js b/frontend/i18n/zh/zh/toastui.js new file mode 100644 index 00000000..7d8afa93 --- /dev/null +++ b/frontend/i18n/zh/zh/toastui.js @@ -0,0 +1,3 @@ +export default { + localeCode: 'zh_CN' +} diff --git a/frontend/i18n/zh/zh/user.js b/frontend/i18n/zh/zh/user.js new file mode 100644 index 00000000..d1b571ca --- /dev/null +++ b/frontend/i18n/zh/zh/user.js @@ -0,0 +1,6 @@ +export default { + login: '登录', + signOut: '注销', + username: '用户名', + password: '密码' +} diff --git a/frontend/i18n/zh/zh/vuetify.js b/frontend/i18n/zh/zh/vuetify.js new file mode 100644 index 00000000..8f6d2420 --- /dev/null +++ b/frontend/i18n/zh/zh/vuetify.js @@ -0,0 +1,4 @@ +export default { + itemsPerPageText: '每页最多可显示', + noDataAvailable: '没有数据可获得' +}