feat(i18n): 完整翻译 ja/ko + 5 locale 加 Beta 标识#284
Merged
Conversation
用户反馈:之前 ja.ts / ko.ts 只是 35 行 scaffold,缺失的 key 全部 fallback
到英文,对日韩用户体验割裂;用户希望"完善为完整版本,并在语言名称
后加 Beta 标识"。
改动:
1. 5 个 locale (en / zh-CN / zh-TW / ja / ko) 的
settings.language.{ja,ko} 都加上 " (Beta)" 后缀,让用户在任何 UI
语言下都能看到日韩为预览版本。
2. ja.ts 重写为完整 217 string 翻译版(保留 ...en spread 作为安全网,
未来新增 key 仍 fallback 英文不会破坏编译)。
3. ko.ts 同上。
翻译质量:AI 机器翻译初版,符合 i18n 模板结构与占位符约束({{var}} /
markdown emphasis 全部保留),通过 tsc strict 校验(typeof zhCN)。
建议后续 native speaker review 调整敬语、专业术语、文体一致性。
类型保证:keep `typeof zhCN` 约束让 ts 编译强制 ja/ko 与 zh-CN 同
schema;新加 zh-CN key 时 ja/ko 仍能编译(...en fallback),但用户在
日韩 UI 下会看到英文 — 提示团队补全翻译。
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
User description
用户反馈
之前 `ja.ts` / `ko.ts` 只是 35 行 scaffold,缺失 key 全部 fallback 到英文,对日韩用户体验割裂。用户原话:
改动
1. Beta 标识(5 个 locale)
`en/zh-CN/zh-TW/ja/ko` 的 `settings.language.{ja,ko}` 都加 ` (Beta)` 后缀。在任何 UI 语言下都能看到日韩为预览版本,符合 VS Code、Notion 等产品惯例(统一用英文 "Beta",跨语言通用)。
2. ja.ts 完整翻译(35 → 569 行)
217 string 全翻译。保留 `...en` spread 作为安全网(未来新增 zh-CN key 时不会让 ja.ts 编译错,会 fallback 英文,提示团队补译)。
3. ko.ts 完整翻译(35 → 569 行)
同上。
翻译质量声明(重要)
AI 机器翻译初版:
解耦说明
此 PR 与 1.2.20 release 解耦(用户原话"解耦并放出新的语言包"),独立 ship 时机由 reviewer 决定。
Test plan
PR Type
Enhancement
Description
Completed Japanese (
ja.ts) and Korean (ko.ts) translations (35 → 569 lines, 217 strings)Added
(Beta)suffix to Japanese/Korean language names in all 5 locale filesRetained
...enspread inja.ts/ko.tsas fallback for newly added keysDiagram Walkthrough
File Walkthrough
en.ts
Add Beta label to Japanese and Korean in English localeopenless-all/app/src/i18n/en.ts
(Beta)suffix tosettings.language.jaandsettings.language.koja.ts
Complete Japanese translation (35 → 569 lines)openless-all/app/src/i18n/ja.ts
...enspread for most sections) with fulltranslation of all 217 strings
...enspread as safety net for future keysonboarding, overview, history, vocab, style, translation,
selectionAsk, settings, modal, windowChrome, hotkey, localAsr
ko.ts
Complete Korean translation (35 → 569 lines)openless-all/app/src/i18n/ko.ts
...enspread for fallbackzh-CN.ts
Add Beta label for Japanese and Korean in Simplified Chineseopenless-all/app/src/i18n/zh-CN.ts
(Beta)suffix tosettings.language.jaandsettings.language.kozh-TW.ts
Add Beta label for Japanese and Korean in Traditional Chineseopenless-all/app/src/i18n/zh-TW.ts
(Beta)suffix tosettings.language.jaandsettings.language.ko