feat: Chinese language support#6407
Conversation
WalkthroughThe pull request introduces Chinese language support to the internationalization configuration. This involves updating the language configuration in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
packages/i18n/src/config/index.ts (1)
1-5: Consider organizing imports alphabeticallyThe import statements could be organized alphabetically for better maintainability.
Apply this change:
- import cn from "../locales/cn/translations.json"; - import en from "../locales/en/translations.json"; - import es from "../locales/es/translations.json"; - import fr from "../locales/fr/translations.json"; - import ja from "../locales/ja/translations.json"; + import zh from "../locales/zh/translations.json"; + import en from "../locales/en/translations.json"; + import es from "../locales/es/translations.json"; + import fr from "../locales/fr/translations.json"; + import ja from "../locales/ja/translations.json";
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/i18n/src/config/index.ts(3 hunks)packages/i18n/src/locales/cn/translations.json(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- packages/i18n/src/locales/cn/translations.json
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Analyze (javascript)
- GitHub Check: Analyze (python)
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
packages/i18n/src/locales/zh-CN/translations.json (1)
117-117: Improve the workspace request email template translation.The email template contains untranslated placeholders
[/workspace-name]and[工作区创建目的]. Consider using more descriptive Chinese placeholders for consistency.- "workspace_request_body": "实例管理员:\n\n请在 URL [/workspace-name] 处创建一个新的工作区。[工作区创建目的]\n\n谢谢。\n{{firstName}} {{lastName}}\n{{email}}", + "workspace_request_body": "实例管理员:\n\n请在 URL [工作区名称] 处创建一个新的工作区。[创建目的]\n\n谢谢。\n{{firstName}} {{lastName}}\n{{email}}",
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/i18n/src/config/index.ts(3 hunks)packages/i18n/src/locales/zh-CN/translations.json(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- packages/i18n/src/config/index.ts
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Analyze (javascript)
- GitHub Check: Analyze (python)
🔇 Additional comments (2)
packages/i18n/src/locales/zh-CN/translations.json (2)
1-319: Well-structured and culturally appropriate translations!The translations maintain a consistent formal tone using "您" and provide clear, professional Chinese translations for technical terms.
1-319: Valid JSON structure and formatting!The file follows proper JSON syntax and formatting conventions.
Description
Adding Chinese language translations.
Type of Change
References
#6390
Summary by CodeRabbit
New Features
Documentation