hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] <title> Theme Settings Drawer Shows Chinese Text When Language is Set to English

Open miantalha45 opened this issue 10 months ago • 3 comments

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
Image

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:

  1. Use the application's i18n service to fetch translations
  2. Accept language/locale props to display correct translations
  3. Or be replaced/customized to use the HertzBeat i18n system

Environment

HertzBeat version(s):

Debug logs

No response

Anything else?

No response

miantalha45 avatar Jan 25 '26 15:01 miantalha45

@tomsun28 Hi! I am working on a fix for this issue and would appreciate being assigned to it.

miantalha45 avatar Jan 25 '26 15:01 miantalha45

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.

prachisingh342006 avatar Jan 29 '26 04:01 prachisingh342006

Hi @prachisingh342006 I have already fixed it and raised a PR for this.

miantalha45 avatar Jan 29 '26 04:01 miantalha45