Repository navigation
fix(service-settings): translate the AI "Reset to environment defaults" button and cover action_button labels - #25527
Merged
objectstack-fleet[bot] merged 2 commits intoOct 23, 2026
Conversation
… action_button labels Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016g7nYP9wdNx1GDa5XDr7Uy
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016g7nYP9wdNx1GDa5XDr7Uy
Contributor
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 9 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
Contributor
Author
席位核对 · ACCEPT · 2026-10-23T19:52Z
Generated by Claude Code |
objectstack-fleet
Bot
deleted the
claude/issue-25502-ai-reset-translation
branch
October 23, 2026 20:19
This was referenced Oct 23, 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.
Requested by Sales · project thread
Fixes #25502
Clause-②: no
Metadata-protocol: none
What changed
Setup → AI's Reset to environment defaults button rendered in English in zh-CN, ja-JP and es-ES sessions, next to its translated siblings ("测试连接", "测试 Embedder").
packages/services/service-settings/src/manifests/ai.manifest.tsdeclares{ type: 'action_button', id: 'reset', label: 'Reset to environment defaults' }. The console resolves an action label assettings.ai.actions.reset.label. On basedc3e5b9d7b, none of the four bundles had that key:ai.actionsheld onlytestandtest_embedder.translations/{zh-CN,ja-JP,es-ES}.ts. The wording follows each bundle's own word for the env source (sourceLabels.env):重置为环境变量默认值環境変数のデフォルトにリセットRestablecer a los valores predeterminados del entornoen.tsalso gets the English entry besidetest/test_embedder, so the en fallback carries every AI action.settings-translation-coverage.test.tsread titles, groups, field keys andinfo_bannercopy, but neveraction_buttonlabels: a button has anidand nokey, so it matched none of the branches. The test now covers action buttons in both directions:settings.NAMESPACE.actions.ID.labelfor eachaction_buttonin every manifest. A button with noidis reported, the same as a banner with noid.actionscopy for a button no manifest declares.Landing: the claim's file surface (service-settings translation bundles and the coverage test). The manifest is unchanged, and
packages/specis not touched.Evidence
resetentry throughscripts/ablation-replace.mjs. The anchor hit once, x1 to x0, blob47f36fc78683to7bd43be08bbc. The coverage test went red withzh-CN missing for ai: action:reset(Tests 1 failed / 39 passed). The script restored the file (blob equals HEAD47f36fc78683,git diff HEADempty). The test readssrcthrough relative imports, so no dist rebuild was involved.pnpm --filter @objectstack/service-settings testgave Test Files 60 passed (60), Tests 1000 passed (1000).pnpm --filter @objectstack/service-settings typecheckexited 0, and its tsconfig includes all ofsrc, test files included. Both ran on head591481a4d1.node scripts/pm/dispatch-gates.mjs --commandsderived 67 commands. 66 ran and exited 0.pnpm check:dual-build-cjs-loadsexited 3 with PREREQUISITE NOT MET: it needs a fullpnpm build, so it was not measured locally and is left to CI. Reconciling with--ranaccounted for all 67 (66 run, 1 not measured).Acceptance notes
en.tshas nosmsnamespace at all. en is not a gated locale, and the English label falls back to the manifest literal. This is noted, not changed.🤖 Generated with Claude Code
https://claude.ai/code/session_016g7nYP9wdNx1GDa5XDr7Uy