fix(i18n): green CI — settings mock + canonical text token

- settings.test.ts mocks @fusion/core; add SUPPORTED_LOCALES to the mock so the
  new language enum import resolves (shard 1).
- LanguageSelector.css used the banned --text-secondary token; switch to the
  canonical --text-muted (shard 2 text-token-canonicalization guard).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-06-03 09:13:03 -07:00
parent 4f6013ff3a
commit cfff270be7
2 changed files with 2 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ vi.mock("@fusion/core", () => {
return {
GlobalSettingsStore: vi.fn(),
DEFAULT_SETTINGS,
SUPPORTED_LOCALES: ["en", "zh-CN", "zh-TW", "fr", "es"],
resolveWorktrunkSettings: (globalValue: any, projectValue: any) => ({
enabled: projectValue?.enabled ?? globalValue?.enabled ?? false,
...(projectValue?.binaryPath ?? globalValue?.binaryPath ? { binaryPath: projectValue?.binaryPath ?? globalValue?.binaryPath } : {}),

View File

@@ -9,7 +9,7 @@
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-secondary, #888);
color: var(--text-muted, #888);
}
.language-options {