Skip to content

fix(i18n): complete and refine zh-CN translations#8866

Open
wan-kong wants to merge 2 commits intomakeplane:previewfrom
wan-kong:fix/zh-CN-complete-translations
Open

fix(i18n): complete and refine zh-CN translations#8866
wan-kong wants to merge 2 commits intomakeplane:previewfrom
wan-kong:fix/zh-CN-complete-translations

Conversation

@wan-kong
Copy link
Copy Markdown

@wan-kong wan-kong commented Apr 8, 2026

Description

  • Filled missing translation keys

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

References

Summary by CodeRabbit

  • Documentation
    • Expanded Chinese (zh-CN) translations covering account preferences, language/timezone settings, account and workspace descriptions, billing, exports, webhooks, and profile actions (preferences, API tokens).
    • Added translations for project settings (states, labels, estimates, automations), project members, new actions (restore, copy markdown), and extensive navigation/customization text (sidebar/horizontal navigation, pin/unpin, project display limits, command labels).

- 新增 power_k 快捷键导航完整翻译 (~100 项)
- 新增 project_members 5 个字段翻译
- 新增根级键: preferences, language_and_time, timezone_setting 等
- 补全 account_settings 缺失的 heading/description
- 补全 workspace_settings.settings 缺失的 billing_and_plans/exports/webhooks
- 补全 project_settings 缺失的 states/labels/estimates/automations
- 补全 common 缺失的 overview/actions.restore/copy_markdown

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 8, 2026

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 8, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f24ddc7d-d902-41e7-b0d5-0bc367594596

📥 Commits

Reviewing files that changed from the base of the PR and between 9ee72cc and f7281f1.

📒 Files selected for processing (1)
  • packages/i18n/src/locales/zh-CN/translations.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/i18n/src/locales/zh-CN/translations.ts

📝 Walkthrough

Walkthrough

Adds numerous Chinese (zh-CN) translation keys for preferences, account/workspace/project settings, navigation customization, billing, exports, webhooks, automations, and related UI labels (net +266 lines).

Changes

Cohort / File(s) Summary
Chinese Simplified Translations
packages/i18n/src/locales/zh-CN/translations.ts
Introduces ~267 new translation keys: preferences/timezone/language labels, account and workspace settings sections (billing, exports, webhooks), project settings updates (states, labels, estimates, automations), profile actions, power user navigation/commands, project member labels, and top-level navigation customization keys. Replaces project_settings.estimates.description with estimates.enable_description and adds estimates.systems variants.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through keys and lines today,
Planted labels where the menus play,
Preferences, projects, nav all bright,
Mandarin sprinkles, soft and light,
Tiny rabbit cheers—translations take flight!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is incomplete. While the author provided a brief summary ('Filled missing translation keys') and checked 'Improvement' as the change type, they did not complete the Test Scenarios or References sections. Add test scenarios describing how the translation keys were verified and any references to related issues, even if just noting that none exist.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: completing and refining Chinese (Simplified) translations by adding missing translation keys to the zh-CN file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
packages/i18n/src/locales/zh-CN/translations.ts (1)

2884-2892: Inline English comment is unusual for this file.

The comment // Navigation customization at line 2884 is the only inline comment within the translations object. While syntactically valid, consider removing it for consistency since other sections don't have inline comments.

The translations themselves are accurate. "手风琴式侧边栏导航" is an appropriate translation for the accordion navigation pattern.

🔧 Suggested change to remove inline comment
   },
-  // Navigation customization
   customize_navigation: "自定义导航",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/i18n/src/locales/zh-CN/translations.ts` around lines 2884 - 2892,
Remove the lone inline comment "// Navigation customization" within the
translations object to keep file style consistent; locate the block containing
keys customize_navigation, personal, accordion_navigation_control,
horizontal_navigation_bar, show_limited_projects_on_sidebar,
enter_number_of_projects, pin, and unpin and delete the comment line immediately
above customize_navigation so only the key/value pairs remain.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@packages/i18n/src/locales/zh-CN/translations.ts`:
- Around line 2884-2892: Remove the lone inline comment "// Navigation
customization" within the translations object to keep file style consistent;
locate the block containing keys customize_navigation, personal,
accordion_navigation_control, horizontal_navigation_bar,
show_limited_projects_on_sidebar, enter_number_of_projects, pin, and unpin and
delete the comment line immediately above customize_navigation so only the
key/value pairs remain.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 284b5759-7a67-4d04-805c-a340c534a742

📥 Commits

Reviewing files that changed from the base of the PR and between 8a2579c and 9ee72cc.

📒 Files selected for processing (1)
  • packages/i18n/src/locales/zh-CN/translations.ts

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.

2 participants