You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install the dumi as what was given by the torturials and enable the theme switcher (A good example is to see what's inside the “Egg”'s repository at "site" folder).
What is Expected?
As I have a Chinese and English version, the switch button's title should be with Chinese in the Chinese mode.
What is actually happening?
All are English version, not translated.
A typical example is that you can see the official site of dumi at v1.x: https://v1.d.umijs.org/zh-CN/
When in the Chinese version, move your mouse onto the button, "Default to System" should be "跟随系统设置" but actually NOT, this also happens for all the related switch buttons such as "Dark mode", "Light mode"……ect:
Reasons:
The "title" is hard-coded instead of supporting a flexible, localizable string at:
SEWeiTung
changed the title
Cannot localize the title of Theme switcher in v1.X version
Cannot localize the titles of Theme switcher in v1.X version (not supporting?)
Jun 23, 2023
Versions
Steps to reproduce
Install the dumi as what was given by the torturials and enable the theme switcher (A good example is to see what's inside the “Egg”'s repository at "site" folder).
What is Expected?
As I have a Chinese and English version, the switch button's title should be with Chinese in the Chinese mode.
What is actually happening?
All are English version, not translated.
A typical example is that you can see the official site of dumi at v1.x: https://v1.d.umijs.org/zh-CN/
When in the Chinese version, move your mouse onto the button, "Default to System" should be "跟随系统设置" but actually NOT, this also happens for all the related switch buttons such as "Dark mode", "Light mode"……ect:
Reasons:
The "title" is hard-coded instead of supporting a flexible, localizable string at:
dumi/packages/theme-default/src/components/Dark.tsx
Lines 33 to 47 in dbf20d9
The text was updated successfully, but these errors were encountered: