-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(i18n): Add Chinese language pack support
This commit adds Chinese translations for the application, including localization strings for modules such as workflows, scheduling, date pickers, namespaces, error types, data encoding, batch operations, general vocabulary, Nexus, and workers. It also updates the internationalization configuration to include a Chinese language option.
- Loading branch information
Showing
13 changed files
with
950 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { EN, English } from './en'; | ||
import { Chinese, ZH } from './zh'; | ||
|
||
export default { | ||
[EN]: English, | ||
[ZH]: Chinese, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const Namespace = 'batch' as const; | ||
|
||
export const Strings = { | ||
'nav-title': '批处理', | ||
'list-page-title': '批处理操作列表', | ||
'describe-page-title': '批处理操作', | ||
'empty-state-title': '无批处理操作', | ||
'back-link': '返回批处理操作列表', | ||
'operation-type': '操作类型', | ||
details: '操作详情', | ||
identity: '标识符', | ||
'total-operations': '操作总数', | ||
'operations-failed': '{{ count, number }} 失败', | ||
'operations-succeeded': '{{ count, number }} 成功', | ||
'operations-progress': '{{ percent }}% 完成', | ||
results: '操作结果', | ||
'max-concurrent-alert-title': '达到批处理操作并发数上限', | ||
'max-concurrent-alert-description': | ||
'只允许一个正在进行的批处理操作。如果你试图在当前已有一个批处理操作正在运行时创建一个新的批处理操作,它将会失败。', | ||
'job-id-input-hint': | ||
'工作ID必须是唯一的。如果留空,将使用随机生成的UUID。', | ||
'job-id-input-error': '工作ID必须只包含URL安全字符。', | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
export const Namespace = 'common' as const; | ||
|
||
export const Strings = { | ||
loading: '加载中...', | ||
filtering: '过滤中', | ||
'unknown-error': '出现了一个未知的错误。', | ||
search: '搜索', | ||
apply: '应用', | ||
remove: '移除', | ||
query: '查询', | ||
ago: '前', | ||
'all-time': 'All Time', | ||
custom: '自定义', | ||
'start-time': '开始时间', | ||
'end-time': '结束时间', | ||
'close-time': '关闭时间', | ||
relative: '相对时间', | ||
utc: 'UTC', | ||
local: '本地时间', | ||
cancel: '取消', | ||
'clear-all': '清除所有', | ||
'clear-all-capitalized': '清除所有', | ||
'ante-meridiem': '上午', | ||
'post-meridiem': '下午', | ||
ascending: '升序', | ||
descending: '降序', | ||
start: '开始', | ||
end: '结束', | ||
true: '真', | ||
false: '假', | ||
after: '之后', | ||
before: '之前', | ||
between: '介于', | ||
'in-last': '结尾', | ||
'starts-with': '开头', | ||
equals: '等于', | ||
'greater-than': '大于', | ||
'greater-than-or-equal-to': '大于等于', | ||
'less-than': '小于', | ||
'less-than-or-equal-to': '小于等于', | ||
is: '是', | ||
'is-not': '不是', | ||
all: '所有', | ||
submit: '提交', | ||
reason: '原因', | ||
'reason-placeholder': '请输入原因', | ||
confirm: '确认', | ||
summary: '概述', | ||
scheduled: '已调度', | ||
'show-all': '展示所有', | ||
'date-and-time': '日期和时间', | ||
event: '事件', | ||
'collapse-all': '折叠所有', | ||
'expand-all': '展开所有', | ||
id: 'ID', | ||
yes: '是', | ||
no: '否', | ||
maybe: '可能', | ||
refresh: '刷新', | ||
'error-occurred': '出错了', | ||
save: '保存', | ||
'workflow-type': '流程类型', | ||
'workflow-id': '流程ID', | ||
'run-id': '运行ID', | ||
'task-queue': '任务队列', | ||
preview: '预览', | ||
status: '状态', | ||
created: '创建时间: {{created}}', | ||
'last-updated': '最后更新: {{updated}}', | ||
edit: '编辑', | ||
delete: '删除', | ||
view: '查看', | ||
memo: '备注', | ||
notes: '说明', | ||
add: '添加', | ||
'from-now': 'from now', | ||
'hours-abbreviated': '时', | ||
'minutes-abbreviated': '分', | ||
'seconds-abbreviated': '秒', | ||
days: '天', | ||
'number-input-placeholder': '请输入一个数字', | ||
enter: 'Enter', | ||
'no-results': '无结果', | ||
'type-or-paste-in': '输入或粘贴', | ||
'per-page': '每页', | ||
'next-page': '下一页', | ||
'previous-page': '上一页', | ||
'go-to-page': '到第 {{page}} 页', | ||
'next-row': '下一行', | ||
'previous-row': '上一行', | ||
today: '今日', | ||
close: '关闭', | ||
deprecated: '已弃用', | ||
namespaces: '空间', | ||
cluster: '集群', | ||
'codec-server': '编解码服务器', | ||
workflows: '流程', | ||
'workflows-plural_one': '流程', | ||
'workflows-plural_other': '流程', | ||
schedules: '日程', | ||
'schedules-plural_one': '{{ count }} 日程', | ||
'schedules-plural_other': '{{ count }} 日程', | ||
archive: '归档', | ||
import: '导入', | ||
feedback: '反馈', | ||
'log-out': '登出', | ||
details: '详情', | ||
unknown: '未知', | ||
key: 'Key', | ||
type: '类型', | ||
disabled: '已禁用', | ||
enabled: '已启用', | ||
primary: '首要', | ||
previous: '上一个', | ||
next: '下一个', | ||
name: '名字', | ||
version: '版本', | ||
main: 'Main', | ||
'select-all': '选中所有', | ||
absolute: '绝对时间', | ||
'copy-icon-title': '点击复制内容', | ||
'copy-success-icon-title': '内容已复制到剪贴板', | ||
'filter-workflows': '过滤流程', | ||
'event-category-filter-label': '打开事件类型过滤菜单', | ||
'event-date-filter-label': '打开事件日期过滤菜单', | ||
'date-time-menu-label': '打开时间格式化菜单', | ||
'workflow-filter-label': '打开{{attribute}}过滤菜单', | ||
'workflow-status-filter-label': '打开执行状态过滤菜单', | ||
'clear-input-button-label': '清除输入', | ||
'keyboard-shortcuts': '快捷键', | ||
'close-keyboard-shortcuts': '关闭快捷键', | ||
none: '无', | ||
'user-profile': '用户信息', | ||
'arrow-key-up': '向上箭头', | ||
'arrow-key-down': '向下箭头', | ||
'arrow-key-left': '向左箭头', | ||
'arrow-key-right': '向右箭头', | ||
on: '开', | ||
off: '关', | ||
labs: '实验室', | ||
experimental: '实验性功能', | ||
timezone: '时区 {{ timezone }}', | ||
'time-unit': '时间单位', | ||
'time-format': '时间格式', | ||
'time-range': '时间区间', | ||
'based-on-time-preface': '基于', | ||
'download-json': '下载JSON', | ||
'skip-nav': '跳转到主要内容区', | ||
timeline: '时间线', | ||
'equal-to': '等于', | ||
'not-equal-to': '不等于', | ||
'encode-failed': '数据编码失败', | ||
'decode-failed': '数据解码失败', | ||
'job-id': 'Job ID', | ||
'auto-refresh': '自动刷新', | ||
'auto-refresh-tooltip': '{{ interval }} 秒后刷新页面', | ||
'view-more': '查看更多...', | ||
'view-all-runs': '查看所有运行', | ||
'more-options': '更多选项', | ||
download: '下载', | ||
duration: '持续时间', | ||
'search-attributes': '搜索属性', | ||
'history-size-bytes': '历史大小 (字节)', | ||
'execution-details': '执行详情', | ||
day: '白天模式', | ||
night: '夜间模式', | ||
docs: '文档', | ||
'upload-error': '文件上传出错', | ||
description: '描述', | ||
active: '活跃', | ||
inactive: '不活跃', | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const Namespace = 'data-encoder' as const; | ||
|
||
export const Strings = { | ||
'codec-server': '编解码服务器', | ||
'endpoint-title': '编解码服务器浏览器端点', | ||
'endpoint-description': | ||
'为此浏览器输入一个编解码服务器端点。这将在您的浏览器中存储,并且只有您才能访问。', | ||
'endpoint-placeholder': '在此粘贴您的端点', | ||
'pass-access-token-label': '传递用户访问令牌', | ||
'include-cross-origin-credentials-label': '包含跨源凭据', | ||
'include-cross-origin-credentials-warning': | ||
'警告:预飞行检查将被执行,如果配置不正确可能导致解码失败。', | ||
'port-title': 'tctl插件端口', | ||
'port-info': '如果两者都设置,将使用编解码服务器端点。', | ||
'access-token-https-error': | ||
'如果传递访问令牌,端点必须是以https://开头', | ||
'prefix-error': '端点必须以http:// 或 https:// 开头', | ||
'codec-server-description-prefix': '', | ||
'codec-server-description-suffix': | ||
'用于编解码您的数据。编解码服务器端点可以在{{level}}级别上设置,或者在您的浏览器中单独本地设置。', | ||
'browser-override-description': | ||
'使用我的浏览器设置并忽略{{level}}级别的设置。', | ||
'no-browser-override-description': | ||
'使用{{level}}级别的设置,如果可用的话。', | ||
'codec-server-configured': '编解码服务器已配置', | ||
'codec-server-error': '无法连接到编解码服务器', | ||
'codec-server-success': '编解码服务器成功转换内容', | ||
'configure-codec-server': '配置编解码服务器', | ||
'encode-error': '编解码服务器编码失败', | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const Namespace = 'date-picker' as const; | ||
|
||
export const Strings = { | ||
'next-month': '下一月', | ||
'previous-month': '上一月', | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
export const Namespace = 'events' as const; | ||
|
||
export const Strings = { | ||
'empty-state-title': '无匹配事件', | ||
'empty-state-description': '没有找到与您的筛选条件或所选视图相匹配的事件。调整您的筛选条件或视图以查看您的事件。', | ||
'group-empty-state-title': '未找到事件组', | ||
'sort-ascending': '按升序排序 1-9', | ||
'sort-descending': '按降序排序 9-1', | ||
'date-and-time': '日期与时间', | ||
'show-elapsed-time': '显示经过时间和持续时间', | ||
'event-type': '事件类型', | ||
'workflow-events': '流程事件', | ||
category: { | ||
all: '全部', | ||
activity: '活动', | ||
'child-workflow': '子流程', | ||
command: '命令', | ||
'local-activity': '本地活动', | ||
marker: '标记', | ||
nexus: '枢纽', | ||
signal: '信号', | ||
timer: '计时器', | ||
update: '更新', | ||
workflow: '流程', | ||
}, | ||
'attribute-group': { | ||
activity: '活动属性', | ||
parent: '父级', | ||
'retry-policy': '重试策略', | ||
schedule: '调度', | ||
'search-attributes': '搜索属性', | ||
summary: '摘要', | ||
'task-queue': '任务队列', | ||
workflow: '流程属性', | ||
}, | ||
'event-group': '{{eventName}} 相关的事件', | ||
'error-event': '错误事件', | ||
'import-event-history': '导入事件历史记录', | ||
'import-event-history-file-upload': '选择要上传的事件历史记录JSON文件', | ||
'event-history-view': '事件历史记录视图', | ||
'api-history-link': '在Github中查看', | ||
'history-expected-formats': '预期的JSON格式', | ||
'event-history-import-error': '无法从JSON创建事件历史记录', | ||
'event-history-load-error': '无法解析JSON', | ||
'event-classification-label': '事件分类', | ||
'event-classification': { | ||
unspecified: '未指定', | ||
scheduled: '已安排', | ||
open: '打开状态', | ||
new: '新建', | ||
started: '已启动', | ||
initiated: '已初始化', | ||
running: '运行中', | ||
completed: '已完成', | ||
fired: '触发', | ||
cancelrequested: '取消请求', | ||
timedout: '超时', | ||
signaled: '已发送信号', | ||
canceled: '已取消', | ||
failed: '失败', | ||
terminated: '终止', | ||
}, | ||
'decode-event-history': '解码事件历史记录', | ||
encoded: '已编码', | ||
decoded: '已解码', | ||
'decoded-description': '编解码服务器已解码并base64编码', | ||
readable: '人类可读', | ||
'readable-description': '编解码服务器已解码并base64解码', | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as Batch from './batch'; | ||
import * as Common from './common'; | ||
import * as DataEncoder from './data-encoder'; | ||
import * as DatePicker from './date-picker'; | ||
import * as Events from './events'; | ||
import * as Namespaces from './namespaces'; | ||
import * as Nexus from './nexus'; | ||
import * as Schedules from './schedules'; | ||
import * as TypedErrors from './typed-errors'; | ||
import * as Workers from './workers'; | ||
import * as Workflows from './workflows'; | ||
|
||
export const ZH = 'zh' as const; | ||
|
||
export const Chinese = { | ||
[Batch.Namespace]: Batch.Strings, | ||
[Common.Namespace]: Common.Strings, | ||
[DatePicker.Namespace]: DatePicker.Strings, | ||
[Workflows.Namespace]: Workflows.Strings, | ||
[TypedErrors.Namespace]: TypedErrors.Strings, | ||
[Events.Namespace]: Events.Strings, | ||
[Schedules.Namespace]: Schedules.Strings, | ||
[DataEncoder.Namespace]: DataEncoder.Strings, | ||
[Namespaces.Namespace]: Namespaces.Strings, | ||
[Nexus.Namespace]: Nexus.Strings, | ||
[Workers.Namespace]: Workers.Strings, | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export const Namespace = 'namespaces' as const; | ||
|
||
export const Strings = { | ||
'namespace-select-header': '选择空间', | ||
'namespace-select-empty-state': '无空间', | ||
'namespace-label': '选择空间', | ||
'namespaces-empty-state-title': '未找到空间', | ||
'namespaces-empty-state-content': | ||
'您没有权限访问任何空间。请联系管理员寻求帮助。', | ||
namespace: '空间', | ||
versions: '版本', | ||
owner: 'Owner', | ||
global: '全局', | ||
'retention-period': '保留期限', | ||
'history-archival': '历史归档', | ||
'visibility-archival': '可见性归档', | ||
'failover-version': '故障转移版本', | ||
clusters: '集群', | ||
'client-actions': '客户端操作', | ||
'signal-workflow': '信号流程', | ||
'unauthorized-namespace-error': '您没有权限访问此空间。', | ||
'select-namespace-welcome': '欢迎来到Temporal', | ||
'select-namespace': '请选择一个空间开始。', | ||
'search-namespaces': '搜索空间', | ||
'select-namespace-empty-state': | ||
'没有空间。联系您的管理员以创建一个。', | ||
'back-to-namespaces': '返回空间列表', | ||
} as const; |
Oops, something went wrong.