Skip to content

Commit 1c2d458

Browse files
authored
fix: Merge pull request #219 from UniversalDataTool/translation/chinese
Chinese translation
2 parents a5f4ba4 + 2aefb9d commit 1c2d458

File tree

2 files changed

+82
-1
lines changed

2 files changed

+82
-1
lines changed

src/i18n/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import i18n from "i18next"
22
import { initReactI18next } from "react-i18next"
33
import enTranslation from "./locales/en/translation.json"
4+
import cnTranslation from "./locales/cn/translations.json"
45

56
import LanguageDetector from "i18next-browser-languagedetector"
67
// not like to use this?
@@ -16,7 +17,7 @@ i18n
1617
// init i18next
1718
// for all options read: https://www.i18next.com/overview/configuration-options
1819
.init({
19-
fallbackLng: "en",
20+
fallbackLng: "cn",
2021
debug: true,
2122

2223
interpolation: {
@@ -27,6 +28,9 @@ i18n
2728
en: {
2829
translation: enTranslation,
2930
},
31+
cn: {
32+
translation: cnTranslation,
33+
},
3034
},
3135
})
3236

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"starting-page-download-version": "下载版本",
3+
"download": "下载中心",
4+
"universaldatatool-description": "开源数据标签",
5+
"new-file": "新文件",
6+
"start-from-template": "从模板开始",
7+
"open-file": "打开文件",
8+
"open-collabrative-session": "公开合作会议",
9+
"add-authentication": "添加认证",
10+
"no-recent-files": "最近没有文件",
11+
"downloading-and-installing-udt": "下载和安装UDT",
12+
"labeling-images": "标签图片",
13+
"repository": "储存库",
14+
"start-page-about-first-paragraph": "通用数据工具(UDT)是一个开源的网络或可下载的工具,用于标记数据,以便在机器学习或数据处理系统中使用。",
15+
"start-page-about-second-paragraph": "通用数据工具支持计算机视觉、自然语言处理(包括命名实体识别和音频转录)工作流程。",
16+
"the-udt-uses-an": "UDT使用的是",
17+
"start-page-about-third-paragraph": "可以很容易地被程序读取,作为机器学习算法的地真数据集。",
18+
"open-a-template": "打开一个模板",
19+
"to-see-how-the-udt-could-work-for-your-data": "看看UDT如何为您的数据工作。",
20+
"edit-json": "编辑JSON",
21+
"clear-labels": "Clear All Labels",
22+
"telemetry": "遥测",
23+
"custom-collobration-server": "自定义协作服务器",
24+
"label-help": "标签帮助",
25+
"label-help-api-key": "标签帮助 API 密钥",
26+
"an-error-has-occurred": "发生了一个错误",
27+
"sample-brushes": "刷子样品",
28+
"complete": "完整",
29+
"review": "回顾",
30+
"collobrate": "协作",
31+
"join-a-session": "加入会议",
32+
"leave-session": "休会",
33+
"next": "下一个",
34+
"configure-3d-explanation-text-part-1": "嘿,这是不是目前可用,但如果你想这个功能,请让我们知道,留下大拇指上的",
35+
"github-issue": "github问题",
36+
"add-new-field": "添加新领域",
37+
"remove-field": "移除字段",
38+
"preview": "Preview",
39+
"add-input": "添加输入",
40+
"text-input": "文本输入",
41+
"exclusive-choice": "独家选择",
42+
"drop-down-autocomplete": "下拉式/自动完成",
43+
"multiple-item-dropdown-autocomplete": "多个项目下拉/自动完成",
44+
"download-urls-dialog": "这个转换会将所有的URL从你的样本下载到你的电脑,并将路径改为文件名。如果您正在与他人合作,这通常不是一个好主意,但如果您要建立一个模型,这非常有用。",
45+
"no-recent-items": "最近没有项目",
46+
"explore-more": "探索更多",
47+
"reopen-google-drive-picker": "重新打开Google Drive Picker",
48+
"import-from-google-drive-explanation-text": "确保你的Google Drive文件可以通过链接获得。",
49+
"import-from-google-drive-explanation-bold-text": "如果你不这样做,当你在标注时,文件将不会出现",
50+
"select-video-quality": "选择视频质量",
51+
"desktop-only": "仅限桌面",
52+
"auth-must-be-configured": "必须配置Auth",
53+
"must-be-signed-in": "必须签到",
54+
"paste-urls": "粘贴URL",
55+
"files-from-directory": "文件从目录",
56+
"import-text-snippets": "导入文本片段",
57+
"import-toy-dataset": "导入玩具数据集",
58+
"import-from": "进口自",
59+
"name": "名称",
60+
"type": "种类",
61+
"size": "尺寸",
62+
"actions": "行动",
63+
"import": "进口",
64+
"sign-in": "登录",
65+
"complete-sign-up": "完成注册",
66+
"complete-your-sign-up": "完成您的注册",
67+
"transform-local-files-to-web-urls-explanation": "此转换将把您的本地样本上传到云端 注意:这可能需要一点时间。",
68+
"convert-video-keyframes-to-samples": "将视频关键帧转换为样本",
69+
"transform-local-files-to-web-urls": "将本地文件转换为Web URL",
70+
"convert-video-frames-to-images": "将视频帧转换为图像",
71+
"transform-video-frames-to-images-dialog-explanation-text": "此转换将参考视频帧的样本转换为图像。这是创建模型之前的一个有用步骤。您只能转换下载到计算机上的视频。注意:这可能需要一点时间。",
72+
"transform-video-keyframes-dialog-explanation-text": "此操作将把视频上设置的关键帧转换为单个图像分割帧。你的接口类型将从 'video_segmentation '变为 'image_segmentation'。这在为计算机视觉模型准备视频数据时有时会有帮助。",
73+
"transform-video-keyframes-dialog-explanation-warning": "你需要给一些关键帧贴上标签才能使用。",
74+
"universal-data-viewer-interface-warning": "这个接口没有正确设置,请尝试在 '设置 '选项卡中选择一个接口。",
75+
"setup-project": "设置项目"
76+
}
77+

0 commit comments

Comments
 (0)