Skip to content

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

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

fix(i18n): complete and refine zh-CN translations#8866
wan-kong wants to merge 1 commit 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) language support with comprehensive translations for account preferences, workspace navigation, project settings (states, labels, estimates, automations), and customization options.
    • Added translations for new actions including restore and copy markdown features.

- 新增 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

📝 Walkthrough

Walkthrough

Updates the Chinese Simplified (zh-CN) locale file with new translation keys for preferences, workspace/project settings, navigation, billing, webhooks, automations, and related UI labels. The file grows by 266 net lines with translation entries covering account settings, project management, and workspace navigation customization.

Changes

Cohort / File(s) Summary
Chinese Simplified Translations
packages/i18n/src/locales/zh-CN/translations.ts
Adds 267 new translation keys for preferences, language/timezone settings, workspace/project settings subsections (billing, exports, webhooks, automations), navigation customization (sidebar, horizontal nav, project pinning), and related descriptive labels. One existing estimates.description key replaced with estimates.enable_description.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A thousand keys in harmony now,
Chinese whispers across the translation bow,
Settings and preferences bloom in line,
Each label placed—oh, how they shine!
From workspace to project, the words align.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description addresses the main purpose but lacks details on testing, impact validation, and leaves several template sections incomplete or empty. Add details on how the translation completeness was verified, describe test scenarios or validation methods used, and consider linking related issues if any exist.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the main change—completing and refining zh-CN translations in the i18n package.
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.

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