-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(i18n): WeChat channel config form has hardcoded Chinese strings #1890
Copy link
Copy link
Closed
Description
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
- No
weixini18n namespace — Unlike Telegram (assistant), Lark (lark), and DingTalk (dingtalk), WeChat has no dedicated namespace in the localesettings.jsonfiles - Hardcoded Chinese fallbacks — All
t()calls in the component use Chinese strings as fallbacks (e.g.,t('settings.weixin.loginButton', '扫码登录')) instead of English - 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
- Open AionUi Settings
- Go to Remote > Channels
- Expand the WeChat section
- Observe hardcoded Chinese text: "账号 ID", "请用微信扫描二维码", "扫码登录", "对话Agent", "用于Agent对话时调用"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels