Feature/auto detect language for init command #947
Closed
+568
−46
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.

TLDR
功能:为 /init 命令添加语言自动检测
变更概述
此PR为Qwen Code的/init命令增加了语言自动检测功能,使命令能够根据系统语言环境自动选择合适的语言
模板,同时保留用户手动指定语言的优先级。
主要变更
系统语言检测:实现detectSystemLanguage()函数,自动检测系统语言环境
用户参数优先级:保留用户手动指定参数的优先级
用户体验改进:更新UI消息以指示语言是自动检测还是手动指定的
技术详情
测试
用法
此功能增强了Qwen
Code的国际化能力,使/init命令更智能地适配用户的系统语言环境,同时保持了手动指定语言的灵活性。
Dive Deeper
Reviewer Test Plan
Testing Matrix
Linked issues / bugs