WeKnora icon indicating copy to clipboard operation
WeKnora copied to clipboard

Backend returns hardcoded Chinese text for non-Chinese locales

Open nahsi opened this issue 3 weeks ago • 1 comments

Some user-facing text is hardcoded in Chinese in the backend, so users with other UI languages still see Chinese:

  • IM bot replies and commands, even when the channel locale is set: internal/im/service.go, cmd_*.go, think.go, tool_display.go, and the "正在思考..." placeholders in the Slack, Mattermost and Telegram adapters
  • AppError messages, which ErrorHandler returns verbatim (knowledge, tag, FAQ and initialization services)
  • Chat pipeline progress summaries (chat_pipeline/progress.go)
  • System setting descriptions (system_setting.go)
  • Generated names: an agent copy gets (副本), a forked session title gets (分支)

There is no backend message catalog yet. Parse errors already go through stable codes that the frontend translates, so one option is to extend that pattern; a backend catalog keyed by request locale is another. Which way do you prefer?

nahsi avatar Nov 07 '26 20:11 nahsi

I'd like to work on a focused part of this issue: localizing the initial thinking placeholder in Slack, Mattermost, and Telegram using the IM channel locale already carried in the request context.

mmhh256 avatar Nov 12 '26 13:11 mmhh256