-
Notifications
You must be signed in to change notification settings - Fork 4.1k
feat(i18n): add missing zh-CN core translations #8910
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
Open
vincent067
wants to merge
1
commit into
makeplane:preview
Choose a base branch
from
vincent067:feat/add-zh-cn-core-translation
base: preview
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+181
−1
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,179 @@ | ||
| /** | ||
| * Copyright (c) 2023-present Plane Software, Inc. and contributors | ||
| * SPDX-License-Identifier: AGPL-3.0-only | ||
| * See the LICENSE file for details. | ||
| */ | ||
|
|
||
| export default { | ||
| sidebar: { | ||
| projects: "项目", | ||
| pages: "页面", | ||
| new_work_item: "新工作项", | ||
| home: "主页", | ||
| your_work: "我的工作", | ||
| inbox: "收件箱", | ||
| workspace: "工作区", | ||
| views: "视图", | ||
| analytics: "分析", | ||
| work_items: "工作项", | ||
| cycles: "周期", | ||
| modules: "模块", | ||
| intake: "收集", | ||
| drafts: "草稿", | ||
| favorites: "收藏", | ||
| pro: "专业版", | ||
| upgrade: "升级", | ||
| stickies: "便签", | ||
| }, | ||
|
|
||
| auth: { | ||
| common: { | ||
| email: { | ||
| label: "邮箱", | ||
| placeholder: "name@company.com", | ||
| errors: { | ||
| required: "邮箱是必填项", | ||
| invalid: "邮箱格式无效", | ||
| }, | ||
| }, | ||
| password: { | ||
| label: "密码", | ||
| set_password: "设置密码", | ||
| placeholder: "输入密码", | ||
| confirm_password: { | ||
| label: "确认密码", | ||
| placeholder: "确认密码", | ||
| }, | ||
| current_password: { | ||
| label: "当前密码", | ||
| }, | ||
| new_password: { | ||
| label: "新密码", | ||
| placeholder: "输入新密码", | ||
| }, | ||
| change_password: { | ||
| label: { | ||
| default: "修改密码", | ||
| submitting: "正在修改密码", | ||
| }, | ||
| }, | ||
| errors: { | ||
| match: "密码不匹配", | ||
| empty: "请输入密码", | ||
| length: "密码长度应超过8个字符", | ||
| strength: { | ||
| weak: "密码强度较弱", | ||
| strong: "密码强度较强", | ||
| }, | ||
| }, | ||
| submit: "设置密码", | ||
| toast: { | ||
| change_password: { | ||
| success: { | ||
| title: "成功!", | ||
| message: "密码修改成功。", | ||
| }, | ||
| error: { | ||
| title: "错误!", | ||
| message: "出现错误。请重试。", | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| unique_code: { | ||
| label: "验证码", | ||
| placeholder: "123456", | ||
| paste_code: "粘贴发送到您邮箱的验证码", | ||
| requesting_new_code: "正在请求新验证码", | ||
| sending_code: "正在发送验证码", | ||
| }, | ||
| already_have_an_account: "已有账号?", | ||
| login: "登录", | ||
| create_account: "创建账号", | ||
| new_to_plane: "首次使用 Plane?", | ||
| back_to_sign_in: "返回登录", | ||
| resend_in: "{seconds} 秒后重新发送", | ||
| sign_in_with_unique_code: "使用验证码登录", | ||
| forgot_password: "忘记密码?", | ||
| }, | ||
| sign_up: { | ||
| header: { | ||
| label: "创建账号以开始与团队一起管理工作。", | ||
| step: { | ||
| email: { | ||
| header: "注册", | ||
| sub_header: "", | ||
| }, | ||
| password: { | ||
| header: "注册", | ||
| sub_header: "使用邮箱密码组合注册。", | ||
| }, | ||
| unique_code: { | ||
| header: "注册", | ||
| sub_header: "使用发送到上述邮箱地址的验证码注册。", | ||
| }, | ||
| }, | ||
| }, | ||
| errors: { | ||
| password: { | ||
| strength: "请设置强密码以继续", | ||
| }, | ||
| }, | ||
| }, | ||
| sign_in: { | ||
| header: { | ||
| label: "登录以开始与团队一起管理工作。", | ||
| step: { | ||
| email: { | ||
| header: "登录或注册", | ||
| sub_header: "", | ||
| }, | ||
| password: { | ||
| header: "登录或注册", | ||
| sub_header: "使用邮箱密码组合登录。", | ||
| }, | ||
| unique_code: { | ||
| header: "登录或注册", | ||
| sub_header: "使用发送到上述邮箱地址的验证码登录。", | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| forgot_password: { | ||
| title: "重置密码", | ||
| description: "输入您账号的已验证邮箱地址,我们将向您发送密码重置链接。", | ||
| email_sent: "我们已向您的邮箱地址发送重置链接", | ||
| send_reset_link: "发送重置链接", | ||
| errors: { | ||
| smtp_not_enabled: "检测到管理员未启用 SMTP,无法发送密码重置链接", | ||
| }, | ||
| toast: { | ||
| success: { | ||
| title: "邮件已发送", | ||
| message: | ||
| "请查收重置密码链接的邮件。如未在几分钟内收到,请检查垃圾邮件文件夹。", | ||
| }, | ||
| error: { | ||
| title: "错误!", | ||
| message: "出现错误。请重试。", | ||
| }, | ||
| }, | ||
| }, | ||
| reset_password: { | ||
| title: "设置新密码", | ||
| description: "使用强密码保护您的账号", | ||
| }, | ||
| set_password: { | ||
| title: "保护您的账号", | ||
| description: "设置密码有助于安全登录", | ||
| }, | ||
| sign_out: { | ||
| toast: { | ||
| error: { | ||
| title: "错误!", | ||
| message: "退出失败。请重试。", | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| } as const; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new
zh-CN/core.tslargely duplicates keys that already exist inzh-CN/translations.ts(e.g.,sidebar.*,auth.*). Keeping the same keys in two files increases drift risk (and there are already differences, likeunique_code.labelbeing "验证码" here vs "唯一码" intranslations.ts). Consider consolidating so each key lives in exactly one source (either move these keys out oftranslations.tsintocore.ts, or removecore.tsand keep them intranslations.ts), and ensure the loader merges them deterministically.