Repository navigation
Conversation
`crates/` no longer contains a Chinese string literal outside tests. This finishes what the gateway and the control plane started: every `thiserror` message, every diagnostic sentence, every `label()` and `why()`, every `tracing` line and every `expect` is English. The pieces worth naming: - **`tw-adopt`** writes into the user's own configuration files, and what it writes is now English: the sentinel comment block, the sidecar record's field names (`what_this_file_is`, `how_to_restore_by_hand`, `full_backup`) and every takeover note and diagnostic. A client adopted by an earlier version cannot be restored by this one — its markers and record use the old names. - **`tw-engine`**: the synthesized default route is `default` and its catch-all rule is `catch-all`, not 默认 and 兜底. These names appear in `RequestRouted.rule` and in a saved configuration. - **`tw-scan`**: the reason each kind of file is dangerous, which is the sentence the Findings page shows under every finding. - **`tw-config`**: validation, credentials, YAML editing, the version history and the disk states. - **`tw-dialect`**: the rejections that go back to a client when a request cannot be converted — `previous_response_id`, `cachedContent`, `compaction` and the rest. Tests that asserted on Chinese product strings assert on the English. Fixtures that happened to name a route 默认 now name it `default`, because that is the name the engine synthesizes; the Chinese in test data that is only test data stays as it is. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Merged
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.
crates/no longer contains a Chinese string literal outside tests. Thisfinishes what the gateway (#54)
and the control plane (#55)
started: every
thiserrormessage, every diagnostic sentence, everylabel()and
why(), everytracingline and everyexpect.The pieces worth naming
tw-adoptwrites into the user's own configuration files, and what itwrites is English now: the sentinel comment block, the sidecar record's field
names (
what_this_file_is,how_to_restore_by_hand,full_backup) and everytakeover note and diagnostic.
tw-engine: the synthesized default route isdefaultand its catch-allrule is
catch-all, not 默认 and 兜底. Those names reachRequestRouted.ruleand a saved configuration.
tw-scan: the reason each kind of file is dangerous — the sentence theFindings page prints under every finding.
tw-config: validation, credentials, YAML editing, the version history andthe disk states.
tw-dialect: the rejections that go back to a client when a request cannotbe converted —
previous_response_id,cachedContent,compactionand therest.
Tests
Tests that asserted on Chinese product strings assert on the English. Fixtures
that happened to name a route 默认 now name it
default, because that is thename the engine synthesizes. Chinese in test data that is only test data stays
as it is — it is there to prove the code handles it.
Still Chinese
bin/twcore, the CLI's own output: about 70 strings. Nothing incrates/.Verified
cargo fmt --all -- --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace(78 suites, 0 failures) and./scripts/smoke.sh(51 passed, 0 failed).🤖 Generated with Claude Code