[BUG] <title> Theme Settings Drawer Shows Chinese Text When Language is Set to English
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
The theme settings drawer displays Chinese text labels regardless of the selected language:
- "主题色" (Theme Color)
- "设置" (Settings)
- "顶部" (Top)
- "侧边栏" (Sidebar)
- "内容" (Content)
- "其它" (Other)
- Other Chinese labels and descriptions
Expected Behavior
All text in the theme settings drawer should be displayed in English when English is selected as the language, including:
- "Theme Color" instead of "主题色"
- "Settings" instead of "设置"
- "Top" instead of "顶部"
- "Sidebar" instead of "侧边栏"
- "Content" instead of "内容"
- "Other" instead of "其它"
- All other labels and descriptions
Steps To Reproduce
The setting-drawer component from @delon/theme may need to:
- Use the application's i18n service to fetch translations
- Accept language/locale props to display correct translations
- Or be replaced/customized to use the HertzBeat i18n system
Environment
HertzBeat version(s):
Debug logs
No response
Anything else?
No response
@tomsun28 Hi! I am working on a fix for this issue and would appreciate being assigned to it.
Hi @maintainer, I’d like to work on fixing this i18n issue by replacing hardcoded Chinese labels with proper language keys. Please let me know if that’s okay.
Hi @prachisingh342006 I have already fixed it and raised a PR for this.