docs: document zh-Hans locale activation (closes #566)#652
Merged
Conversation
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>
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
谁家PR机器人 |
MMMarcinho
pushed a commit
to MMMarcinho/DeepSeek-TUI
that referenced
this pull request
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Chinese Simplified (
zh-Hans) UI has been fully implemented inlocalization.rssince 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 commentedlocaleoption 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.toml→config.toml). Expand locale section with a concreteconfig.tomlsnippet andLANG=env-var example. Add link todocs/LOCALIZATION.md.How to enable zh-Hans
Or let the OS locale auto-resolve (works out of the box on most Chinese systems):
Or toggle inside the TUI:
/config→ Edit locale → typezh-Hans→ Enter.Context
Closes #566. The feature was already there — only the documentation was missing.
wangfengcsu@qq.com