Skip to content

fix(i18n): WeChat channel config form has hardcoded Chinese strings #1890

@gobylor

Description

@gobylor

Description

The WeChat (微信) channel configuration form in Settings > Remote > Channels has hardcoded Chinese strings instead of using i18n keys. This causes the UI to display Chinese text regardless of the user's language setting.

Affected Area

  • Component: WeixinConfigForm.tsx
  • Page: Settings > Remote > Channels > WeChat

Issues

  1. No weixin i18n namespace — Unlike Telegram (assistant), Lark (lark), and DingTalk (dingtalk), WeChat has no dedicated namespace in the locale settings.json files
  2. Hardcoded Chinese fallbacks — All t() calls in the component use Chinese strings as fallbacks (e.g., t('settings.weixin.loginButton', '扫码登录')) instead of English
  3. Tests use Chinese assertions — Test file assertions match the Chinese fallbacks, masking the issue

Expected Behavior

The WeChat channel form should display properly localized text in all 6 supported languages (en-US, zh-CN, ja-JP, zh-TW, ko-KR, tr-TR), consistent with how Lark and DingTalk channels handle i18n.

Steps to Reproduce

  1. Open AionUi Settings
  2. Go to Remote > Channels
  3. Expand the WeChat section
  4. Observe hardcoded Chinese text: "账号 ID", "请用微信扫描二维码", "扫码登录", "对话Agent", "用于Agent对话时调用"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions