Skip to content

Conversation

@Sam5440
Copy link

@Sam5440 Sam5440 commented Oct 8, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines: https://github.com/riccardoperra/co
    This pull request adds support for the Chinese (zh) language across the application's internationalization (i18n) system. It introduces Chinese translations for all major UI sections, updates locale lists to include Chinese, and ensures the language is recognized as a supported locale.

Chinese language support:

  • Added comprehensive Chinese (zh) translations for all major UI components, including dashboard, sidebar, presets, bottom bar, not found page, and common UI elements in files such as dashboard.ts, sidebar.ts, presets.ts, bottombar.ts, notFound.ts, and ui.ts. [1] [2] [3] [4] [5] [6]

  • Integrated the new Chinese translations into the main locale configuration in index.ts, ensuring all UI strings are available in Chinese.

Locale recognition and configuration:

  • Updated all locale name lists in index.ts to include Chinese translations for language names in Italian, English, German, and Spanish contexts. [1] [2] [3] [4]

  • Added zh to the list of supported locales in locales.ts, allowing the application to recognize and switch to Chinese.deimage/blob/main/CONTRIBUTING.md#commit

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x ] No

Other information

@Sam5440 Sam5440 requested a review from riccardoperra as a code owner October 8, 2025 14:37
@codesandbox
Copy link

codesandbox bot commented Oct 8, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@changeset-bot
Copy link

changeset-bot bot commented Oct 8, 2025

⚠️ No Changeset found

Latest commit: 6db0cbb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

1 participant