Closed abtestingalpha closed 2 months ago
The changes involve the addition of Simplified Chinese support in the LanguageSelector
component and the internationalization configuration of the application. Specifically, a new language option for Simplified Chinese ('zh-CN'
) is added to the languages
array in the LanguageSelector.tsx
file, and the next.config.js
file is updated to include 'zh-CN'
in the list of supported locales. These updates enhance the application's language offerings.
Files | Change Summary |
---|---|
packages/synapse-interface/components/LanguageSelector.tsx packages/synapse-interface/next.config.js |
Added Simplified Chinese ('zh-CN' ) to the languages array and updated the locales in the next.config.js file to include 'zh-CN' . |
sequenceDiagram
participant User
participant LanguageSelector
participant AppConfig
User->>LanguageSelector: Select Language
LanguageSelector->>AppConfig: Update selected language
AppConfig-->>LanguageSelector: Confirm language change
LanguageSelector-->>User: Display updated language
In a world of words, so bright and wide,
A new tongue hops in, with joy and pride.
中文(简体) joins the fun,
Now all can play, each and every one!
Language blooms like flowers in spring,
A rabbit's cheer for the joy it brings! 🐇🌸
[!TIP]
Announcements
- The review status is no longer posted as a separate comment when there are no actionable or nitpick comments. In such cases, the review status is included in the walkthrough comment. - We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1279579842131787838) on our Discord. - Possibly related PRs: Walkthrough comment now includes a list of potentially related PRs to help you recall past context. Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1282535539299323995) on our Discord. - Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs in the walkthrough comment. You can also provide custom labeling instructions in the UI or configuration file. - Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).
packages/synapse-interface/next.config.js (1)
`47-47`: **LGTM!** The change correctly adds the `'zh-CN'` locale to the `locales` array in the `i18n` configuration, enabling support for Simplified Chinese.packages/synapse-interface/components/LanguageSelector.tsx (1)
`15-15`: **LGTM!** The change correctly adds the Simplified Chinese language option to the `languages` array with the appropriate locale code `'zh-CN'` and language name `'中文(简体)'`.
Changes will decrease total bundle size by 147.12kB (-0.41%) :arrow_down:. This is within the configured threshold :white_check_mark:
Latest commit: |
54bc057
|
Status: | ✅ Deploy successful! |
Preview URL: | https://a0d2d477.sanguine-fe.pages.dev |
Branch Preview URL: | https://fe-adds-chinese.sanguine-fe.pages.dev |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 35.16284%. Comparing base (
a240292
) to head (54bc057
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
54bc057
|
Status: | ✅ Deploy successful! |
Preview URL: | https://c20152a6.sanguine.pages.dev |
Branch Preview URL: | https://fe-adds-chinese.sanguine.pages.dev |
Description Adds locale
zh-CN
(simplified Chinese) support.Summary by CodeRabbit
84402201b2a68a6a2dc2167799e22a7f1a324c38: synapse-interface preview link