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:
@@ -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 } : {}),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user