|
| 1 | +# Language Command |
| 2 | + |
| 3 | +The `/language` command allows you to customize the language settings for both the Qwen Code user interface (UI) and the language model's output. This command supports two distinct functionalities: |
| 4 | + |
| 5 | +1. Setting the UI language for the Qwen Code interface |
| 6 | +2. Setting the output language for the language model (LLM) |
| 7 | + |
| 8 | +## UI Language Settings |
| 9 | + |
| 10 | +To change the UI language of Qwen Code, use the `ui` subcommand: |
| 11 | + |
| 12 | +``` |
| 13 | +/language ui [zh-CN|en-US] |
| 14 | +``` |
| 15 | + |
| 16 | +### Available UI Languages |
| 17 | + |
| 18 | +- **zh-CN**: Simplified Chinese (简体中文) |
| 19 | +- **en-US**: English |
| 20 | + |
| 21 | +### Examples |
| 22 | + |
| 23 | +``` |
| 24 | +/language ui zh-CN # Set UI language to Simplified Chinese |
| 25 | +/language ui en-US # Set UI language to English |
| 26 | +``` |
| 27 | + |
| 28 | +### UI Language Subcommands |
| 29 | + |
| 30 | +You can also use direct subcommands for convenience: |
| 31 | + |
| 32 | +- `/language ui zh-CN` or `/language ui zh` or `/language ui 中文` |
| 33 | +- `/language ui en-US` or `/language ui en` or `/language ui english` |
| 34 | + |
| 35 | +## LLM Output Language Settings |
| 36 | + |
| 37 | +To set the language for the language model's responses, use the `output` subcommand: |
| 38 | + |
| 39 | +``` |
| 40 | +/language output <language> |
| 41 | +``` |
| 42 | + |
| 43 | +This command generates a language rule file that instructs the LLM to respond in the specified language. The rule file is saved to `~/.qwen/output-language.md`. |
| 44 | + |
| 45 | +### Examples |
| 46 | + |
| 47 | +``` |
| 48 | +/language output 中文 # Set LLM output language to Chinese |
| 49 | +/language output English # Set LLM output language to English |
| 50 | +/language output 日本語 # Set LLM output language to Japanese |
| 51 | +``` |
| 52 | + |
| 53 | +## Viewing Current Settings |
| 54 | + |
| 55 | +When used without arguments, the `/language` command displays the current language settings: |
| 56 | + |
| 57 | +``` |
| 58 | +/language |
| 59 | +``` |
| 60 | + |
| 61 | +This will show: |
| 62 | + |
| 63 | +- Current UI language |
| 64 | +- Current LLM output language (if set) |
| 65 | +- Available subcommands |
| 66 | + |
| 67 | +## Notes |
| 68 | + |
| 69 | +- UI language changes take effect immediately and reload all command descriptions |
| 70 | +- LLM output language settings are persisted in a rule file that is automatically included in the model's context |
| 71 | +- To request additional UI language packs, please open an issue on GitHub |
0 commit comments