Skip to content

fix(i18n): zh-TW - #4309

Open
hms5232 wants to merge 6 commits into
QuantumNous:mainfrom
hms5232:fix-zh-tw
Open

fix(i18n): zh-TW#4309
hms5232 wants to merge 6 commits into
QuantumNous:mainfrom
hms5232:fix-zh-tw

Conversation

@hms5232

@hms5232 hms5232 commented Apr 17, 2026

Copy link
Copy Markdown

⚠️ 提交说明 / PR Notice

Important

  • 请提供人工撰写的简洁摘要,避免直接粘贴未经整理的 AI 输出。

📝 变更描述 / Description

修正及潤飾 zh-TW 的錯誤或不通順的翻譯。

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix) - 请关联对应 Issue,避免将设计取舍、理解偏差或预期不一致直接归类为 bug
  • ✨ 新功能 (New feature) - 重大特性建议先通过 Issue 沟通
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

  • Closes # (如有)

✅ 提交前检查项 / Checklist

  • 人工确认: 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。
  • 非重复提交: 我已搜索现有的 IssuesPRs,确认不是重复提交。
  • Bug fix 说明: 若此 PR 标记为 Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。
  • 变更理解: 我已理解这些更改的工作原理及可能影响。
  • 范围聚焦: 本 PR 未包含任何与当前任务无关的代码改动。
  • 本地验证: 已在本地运行并通过测试或手动验证,维护者可以据此复核结果。
  • 安全合规: 代码中无敏感凭据,且符合项目代码规范。

📸 运行证明 / Proof of Work

(请在此粘贴截图、关键日志或测试报告,以证明变更生效)

圖片

Summary by CodeRabbit

  • Documentation

    • Updated Traditional Chinese README wording for clearer, consistent terminology (project title, headings, Docker label, list/button phrasing, and other inline text).
  • Chores

    • Standardized Traditional Chinese localization strings across the app—uniform terms such as 生成→產生, 獲取→取得, 登入/登錄 variants, 封鎖/停用, 儲值 (payment), 電子信箱, 批次產生, slug phrasing, and related message wording.

@coderabbitai

coderabbitai Bot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a3e7d3b3-a58b-473c-930b-d06878201d24

📥 Commits

Reviewing files that changed from the base of the PR and between 7f90616 and 847badc.

📒 Files selected for processing (1)
  • i18n/locales/zh-TW.yaml
✅ Files skipped from review due to trivial changes (1)
  • i18n/locales/zh-TW.yaml

Walkthrough

This PR standardizes Traditional Chinese wording across documentation and localization: it updates terminology and phrasing in README.zh_TW.md and message values in i18n/locales/zh-TW.yaml without changing keys, code, commands, URLs, or public APIs.

Changes

Cohort / File(s) Summary
Documentation Localization
README.zh_TW.md
Project title and section headings adjusted (e.g., “大模型網關” → “大型語言模型閘道”); multiple headings and inline terms renamed for consistent Traditional Chinese wording. Only textual edits; no links, commands, or code changed.
Translation Strings
i18n/locales/zh-TW.yaml
Numerous message values revised for term consistency (e.g., “生成/獲取”→“產生/取得”, “充值”→“儲值”, “信箱”→“電子信箱”, “禁用/封禁”→“停用/封鎖”). Keys unchanged; purely value updates.

Sequence Diagram(s)

(omitted)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • feat(localization): added zh_TW #2913: Edits the same Traditional Chinese localization artifacts (README.zh_TW.md and i18n/locales/zh-TW.yaml), likely overlapping translation adjustments.

Suggested reviewers

  • Calcium-Ion

Poem

🐰 I nibble words with careful paws,
Hopping through phrases, fixing small flaws.
"專案" finds home where "項目" once played,
"介面" and "儲值" in tidy parade.
A rabbit's small hop—now wording's well-laid.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(i18n): zh-TW' directly addresses the primary change—corrections to Traditional Chinese (zh-TW) translations and wording in localization files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
i18n/locales/zh-TW.yaml (2)

34-34: ⚠️ Potential issue | 🟡 Minor

Terminology inconsistency: 封禁 vs 封鎖.

oauth.user_banned (Line 243) and user.username_or_password_error (Line 69) were normalized to 封鎖, but auth.user_banned here still uses 封禁. For consistency across the locale, consider updating this line as well.

Proposed change
-auth.user_banned: "使用者已被封禁"
+auth.user_banned: "使用者已被封鎖"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@i18n/locales/zh-TW.yaml` at line 34, The key auth.user_banned uses the term
"封禁" which is inconsistent with other keys (oauth.user_banned and
user.username_or_password_error) that use "封鎖"; update the auth.user_banned
value to use "封鎖" so terminology is consistent across the zh-TW locale, ensuring
you edit the auth.user_banned entry in i18n/locales/zh-TW.yaml to match the
normalized wording.

156-156: ⚠️ Potential issue | 🟡 Minor

當前目前 missed here.

redemption.expire_time_invalid (Line 62) and payment.not_configured (Line 128) were updated to 目前, but channel.upstream_saturated still uses 當前分組. Consider aligning.

Proposed change
-channel.upstream_saturated: "當前分組上游負載已飽和,請稍後再試"
+channel.upstream_saturated: "目前分組上游負載已飽和,請稍後再試"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@i18n/locales/zh-TW.yaml` at line 156, The string for key
channel.upstream_saturated uses "當前分組上游負載已飽和,請稍後再試" but should use the
consistent term "目前" like other entries; update the value in
channel.upstream_saturated to "目前分組上游負載已飽和,請稍後再試" so it matches the wording used
in redemption.expire_time_invalid and payment.not_configured.
README.zh_TW.md (1)

47-47: ⚠️ Potential issue | 🟡 Minor

Broken in-page anchor: #-主要特性.

The heading was renamed from 主要特性 to 主要功能 at Line 178, but the top-of-README quick-nav still links to #-主要特性. GitHub's auto-generated anchor will no longer match, so this link is dead.

Proposed fix
-  <a href="#-主要特性">主要特性</a> •
+  <a href="#-主要功能">主要功能</a> •
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.zh_TW.md` at line 47, Update the broken in-page anchor link by
replacing the href value "#-主要特性" in the top navigation link element (<a
href="#-主要特性">主要特性</a>) with the new auto-generated anchor for the renamed
heading ("主要功能"), i.e. change the href to "#-主要功能" so the quick-nav link matches
the actual heading text "主要功能".
🧹 Nitpick comments (1)
README.zh_TW.md (1)

186-186: Minor: 使用者界面 vs 介面.

The PR normalizes 接口介面 across the document. On this line the text still reads 使用者界面設計. In zh-TW both 界面 and 介面 are acceptable, but for consistency with the rest of the file consider 使用者介面設計. Non-blocking.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.zh_TW.md` at line 186, The line containing "🎨 全新 UI | 現代化的使用者界面設計"
uses 界面 while the PR standardized on 介面; update that string to "🎨 全新 UI |
現代化的使用者介面設計" so it matches the rest of the document's use of 介面.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@i18n/locales/zh-TW.yaml`:
- Line 42: Normalize inconsistent verb usage by replacing 獲取 with 取得 in the
zh-TW locale entries; update the keys/values such as token.get_info_failed,
channel.get_list_failed, channel.get_tags_failed, channel.get_key_failed,
channel.get_ollama_failed, channel.get_available_failed, model.get_list_failed,
model.get_failed, and distributor.get_channel_failed so their messages use 取得
instead of 獲取, ensuring the rest of each string remains unchanged and preserving
YAML quoting/formatting.
- Line 93: The key user.topup_processing still uses the term "充值" instead of the
normalized "儲值"; update the value for user.topup_processing to use "儲值" so it
matches the other topup.* messages and payment.not_configured entries (i.e.,
replace "充值處理中,請稍後重試" with the normalized "儲值處理中,請稍後重試" under the
user.topup_processing key).

In `@README.zh_TW.md`:
- Line 448: Replace the string "本項目採用" with "本專案採用" in the README line that
currently reads "本項目採用 [GNU Affero 通用公共許可證 v3.0 (AGPLv3)](./LICENSE) 授權。";
update the text so it reads "本專案採用 [GNU Affero 通用公共許可證 v3.0 (AGPLv3)](./LICENSE)
授權。", preserving the existing license link and punctuation.

---

Outside diff comments:
In `@i18n/locales/zh-TW.yaml`:
- Line 34: The key auth.user_banned uses the term "封禁" which is inconsistent
with other keys (oauth.user_banned and user.username_or_password_error) that use
"封鎖"; update the auth.user_banned value to use "封鎖" so terminology is consistent
across the zh-TW locale, ensuring you edit the auth.user_banned entry in
i18n/locales/zh-TW.yaml to match the normalized wording.
- Line 156: The string for key channel.upstream_saturated uses
"當前分組上游負載已飽和,請稍後再試" but should use the consistent term "目前" like other entries;
update the value in channel.upstream_saturated to "目前分組上游負載已飽和,請稍後再試" so it
matches the wording used in redemption.expire_time_invalid and
payment.not_configured.

In `@README.zh_TW.md`:
- Line 47: Update the broken in-page anchor link by replacing the href value
"#-主要特性" in the top navigation link element (<a href="#-主要特性">主要特性</a>) with the
new auto-generated anchor for the renamed heading ("主要功能"), i.e. change the href
to "#-主要功能" so the quick-nav link matches the actual heading text "主要功能".

---

Nitpick comments:
In `@README.zh_TW.md`:
- Line 186: The line containing "🎨 全新 UI | 現代化的使用者界面設計" uses 界面 while the PR
standardized on 介面; update that string to "🎨 全新 UI | 現代化的使用者介面設計" so it matches
the rest of the document's use of 介面.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 32f07260-3840-46d8-ae14-366fec4f8cb4

📥 Commits

Reviewing files that changed from the base of the PR and between 2834740 and b74a3d4.

📒 Files selected for processing (3)
  • README.zh_TW.md
  • i18n/locales/zh-TW.yaml
  • web/src/i18n/locales/zh-TW.json

Comment thread i18n/locales/zh-TW.yaml Outdated
Comment thread i18n/locales/zh-TW.yaml Outdated
Comment thread README.zh_TW.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant