Skip to content

docs: document zh-Hans locale activation (closes #566)#652

Merged
Hmbown merged 3 commits into
Hmbown:mainfrom
merchloubna70-dot:feat/chinese-i18n-566
May 5, 2026
Merged

docs: document zh-Hans locale activation (closes #566)#652
Hmbown merged 3 commits into
Hmbown:mainfrom
merchloubna70-dot:feat/chinese-i18n-566

Conversation

@merchloubna70-dot

Copy link
Copy Markdown

Summary

Chinese Simplified (zh-Hans) UI has been fully implemented in localization.rs since v0.7.6, but wasn't discoverable without reading source code. This PR makes it visible in the two places users look first.

Changes (docs only, zero code changes):

  • config.example.toml: Add commented locale option under [tui] with all supported values (auto / en / ja / zh-Hans / pt-BR) and a note that it affects TUI chrome only — not model output language.
  • README.zh-CN.md: Fix wrong filename (settings.tomlconfig.toml). Expand locale section with a concrete config.toml snippet and LANG= env-var example. Add link to docs/LOCALIZATION.md.

How to enable zh-Hans

# ~/.deepseek/config.toml
[tui]
locale = "zh-Hans"

Or let the OS locale auto-resolve (works out of the box on most Chinese systems):

LANG=zh_CN.UTF-8 deepseek run

Or toggle inside the TUI: /configEdit locale → type zh-Hans → Enter.

Context

Closes #566. The feature was already there — only the documentation was missing.


wangfengcsu@qq.com

macworkers and others added 3 commits May 4, 2026 12:39
All system prompts were English-only, causing DeepSeek V4 to reason
and respond in English even when users wrote in Chinese or other
languages.

Add a Language Mirror section to base.md and base.txt that instructs
the model to detect the user's primary language and use it for both
reasoning (thinking tokens) and the final reply.
base.txt is not referenced via include_str! in prompts.rs.
Only base.md is loaded (BASE_PROMPT). Remove the redundant change
to base.txt as noted by Gemini Code Assist review.
- Add locale option to config.example.toml [tui] section with all
  supported values (auto/en/ja/zh-Hans/pt-BR) and clear notes that
  this controls TUI chrome only, not model output language.
- Fix README.zh-CN.md: settings.toml → config.toml (wrong filename).
- Expand README.zh-CN.md locale section with concrete config snippet
  and LANG= env-var example; add link to docs/LOCALIZATION.md.

The zh-Hans locale has been fully implemented in localization.rs since
v0.7.6 — this commit makes it discoverable without reading source code.

Closes Hmbown#566

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@ILoveScratch2

Copy link
Copy Markdown

谁家PR机器人

@Hmbown Hmbown merged commit 848725e into Hmbown:main May 5, 2026
1 check passed
MMMarcinho pushed a commit to MMMarcinho/DeepSeek-TUI that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] bro,please add chinese language

3 participants