Skip to content

fix(i18n): add missing zh-CN translations for theme switch component#918

Merged
Teingi merged 1 commit into
oceanbase:mainfrom
wayyoungboy:issue-915
May 7, 2026
Merged

fix(i18n): add missing zh-CN translations for theme switch component#918
Teingi merged 1 commit into
oceanbase:mainfrom
wayyoungboy:issue-915

Conversation

@wayyoungboy
Copy link
Copy Markdown
Member

ThemeToggle used hardcoded English strings instead of i18n keys. Add theme.light/dark/system keys to both en.json and zh.json, and update the component to use useTranslation.

Fixes #915

ThemeToggle used hardcoded English strings instead of i18n keys.
Add theme.light/dark/system keys to both en.json and zh.json,
and update the component to use useTranslation.

Fixes oceanbase#915
@wayyoungboy
Copy link
Copy Markdown
Member Author

image image

Copy link
Copy Markdown
Member

@Teingi Teingi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Teingi Teingi merged commit 76255d5 into oceanbase:main May 7, 2026
10 checks passed
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.

[Enhancement]: Set the language to Simplified Chinese, but the theme switch will still display English

2 participants