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

Add Chinese language support #2991

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions web/src/components/sidenav/Sidenav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ const Sidenav: React.FC<SidenavProps> = () => {
<MenuItem key={'pl'} value={'pl'}>
{'pl'}
</MenuItem>
<MenuItem key={'zh'} value={'zh'}>
{'zh'}
</MenuItem>
</Select>
</Box>
</FormControl>
Expand Down
134 changes: 134 additions & 0 deletions web/src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,140 @@ i18next
},
},
},
zh: {
translation: {
header: {
docs_link: 'API 文档',
},
jobs: {
search: '搜索',
latest_tab: '最新运行',
history_tab: '运行历史',
location: '位置',
empty_title: '没有可用的运行信息',
empty_body: '尝试添加一些运行信息。',
runinfo_subhead: '方面',
runs_subhead: '方面',
facets_subhead_aria: '搜索',
dialog_delete: '删除',
dialog_confirmation_title: '你确定吗?',
},
search: {
filter: {
all: '全部',
jobs: '工作',
datasets: '数据集',
updated: '更新',
name: '名称',
},
status: '搜索...',
none: '没有结果',
search: '搜索',
search_aria: '搜索工作和工作集',
jobs: '工作',
and: '和',
datasets: '数据集',
},
lineage: {
empty_title: '未选择节点',
empty_body:
'尝试通过搜索或工作或数据集页面选择一个节点。',
graph_depth_title: '深度',
full_graph_label: '完整',
empty: '空',
no_inputs: '此节点没有输入。',
no_outputs: '此节点没有输出。',
},
sidenav: {
dataOps: '数据操作',
jobs: '工作',
datasets: '数据集',
events: '事件',
},
namespace_select: {
prompt: 'ns', // namespace的缩写
},
dataset_tags: {
tooltip: '添加标签',
dialogtitle: '添加标签',
selecttagtoadd: '选择要添加的标签',
addatagdialog: '添加标签',
canceltagdialog: '取消',
},
dataset_info: {
empty_title: '没有字段',
empty_body: '尝试添加数据集字段。',
facets_subhead: '方面',
facets_subhead_aria: '搜索',
run_subhead: '由运行创建',
duration: '持续时间',
},
datasets: {
latest_tab: '最新模式',
history_tab: '版本历史',
column_lineage_tab: '列血缘',
dialog_delete: '删除',
dialog_confirmation_title: '你确定吗?',
show_field_tags: '显示字段标签',
},
datasets_route: {
empty_title: '没有数据集',
empty_body:
'尝试更改命名空间或查看我们的文档以添加数据集。',
heading: '数据集',
name_col: '名称',
namespace_col: '命名空间',
source_col: '来源',
updated_col: '更新时间',
quality: '质量',
},
datasets_column_lineage: {
empty_title: '没有列血缘',
empty_body: '列血缘不可用于指定数据集。',
},
jobs_route: {
empty_title: '没有工作',
empty_body:
'尝试更改命名空间或查看我们的文档以添加工作。',
heading: '工作',
name_col: '名称',
namespace_col: '命名空间',
updated_col: '更新时间',
latest_run_col: '最新运行时间',
latest_run_state_col: '最新运行状态',
},
runs_columns: {
id: 'ID',
state: '状态',
created_at: '创建时间',
started_at: '开始时间',
ended_at: '结束时间',
duration: '持续时间',
},
dataset_info_columns: {
name: '名称',
type: '类型',
description: '描述',
column_lineage: '列血缘',
},
dataset_versions_columns: {
version: '版本',
created_at: '创建时间',
fields: '字段',
created_by_run: '由运行创建',
lifecycle_state: '生命周期状态',
},
events_route: {
title: '事件',
from_date: '开始日期',
to_date: '结束日期',
previous_page: '上一页',
next_page: '下一页',
empty_title: '没有事件',
empty_body: '尝试更改日期或查看我们的文档以添加事件。',
},
},
},
},
defaultNS,
detection: DETECTION_OPTIONS,
Expand Down