Skip to content

feat(i18n): Add Simplified Chinese (zh-CN) support and complete i18n integration#1769

Open
029527 wants to merge 3 commits intobytedance:mainfrom
029527:feat/i18n-zh-cn
Open

feat(i18n): Add Simplified Chinese (zh-CN) support and complete i18n integration#1769
029527 wants to merge 3 commits intobytedance:mainfrom
029527:feat/i18n-zh-cn

Conversation

@029527
Copy link

@029527 029527 commented Dec 20, 2025

Summary

PR Description

This pull request implements full internationalization (i18n) support for the application with a focus on Simplified Chinese (zh-CN) localization, encompassing core functionality, UI translation, and code refactoring.

Key Changes

  • Introduce a useTranslation hook to centralize multi-language content management across components.
  • Implement language switching functionality in the Settings component, with user preferences persisted via settings storage.
  • Add Simplified Chinese (zh-CN) translations for critical UI elements: settings interface, sidebar, dialogs, and message components.
  • Refactor components to replace hard-coded text with translation hook calls for unified multilingual management.
  • Update translation files to add missing keys and corresponding Simplified Chinese texts.

Impact

  • Users can now switch to Simplified Chinese (zh-CN) for the entire application interface.
  • The codebase is prepared for future language expansions through the standardized useTranslation hook.
  • No breaking changes to existing functionality; localization is fully backward-compatible.

Checklist

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve the above items.

- Introduce a `useTranslation` hook for managing multi-language content.
- Implement the language switching functionality in the Settings component.
- Add Simplified Chinese (zh-CN) translations for the settings UI.
- Extend the settings storage to persist the selected language preference.
- Add i18n support with a translation hook.
- Translate texts for sidebar, dialogs, and message components.
- Refactor components to use translation hooks for unified management of multilingual texts.
- Update translation files, adding missing translation keys and corresponding texts.
@netlify
Copy link

netlify bot commented Dec 20, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit b87aa8f
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/694701b160903800081e33e0
😎 Deploy Preview https://deploy-preview-1769--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link

CLAassistant commented Dec 20, 2025

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Dec 20, 2025

Deploy Preview for tarko ready!

Name Link
🔨 Latest commit b87aa8f
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/694701b1a7d51e0008a99ee5
😎 Deploy Preview https://deploy-preview-1769--tarko.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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