WeKnora
WeKnora copied to clipboard
Backend returns hardcoded Chinese text for non-Chinese locales
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 AppErrormessages, whichErrorHandlerreturns 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?
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.