Repository navigation
fix(cli): default the standards language to the OS language - #59
Merged
Merged
Conversation
macOS reads AppleLanguages/AppleLocale and Windows reads PreferredUILanguages/LocaleName ahead of the terminal locale; update's self-restart forwards --lang, and pre-anchor Chinese blocks fall back to their §0 heading. Tests: 1555 pass, 5 skipped. lint/typecheck clean. No version bump.
init keeps an installed block before falling back to the system language, matching update; the resolveStandardsLanguage comment now names the OS-first chain. Tests: 1555 pass, 5 skipped. lint/typecheck clean. No version bump.
`## 一、代码质量` blocks now identify as Chinese before update can rewrite them; wrapper-refresh tests pass an explicit lang so they no longer depend on the host OS language. Tests: 1556 pass, 5 skipped. lint/typecheck clean. No version bump.
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
AppleLanguages→AppleLocale) and Windows (PreferredUILanguages→LocaleName) before the terminal locale, with env/Intl fallback.update's self-restart forwards--langinstead of silently dropping it.## 0. 适用范围heading, soupdateno longer flips them to English.--langhelp and CHANGELOG updated.Test plan
npm run lint— 0 errorsnpm run typechecknpm run build && npm run test:run— 1555 pass, 5 skippedzh-HanswithLANG=en_US.UTF-8update --lang zhprobe: self-restart keeps the flag and switches the block to Chinese