You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The daemon returns English error messages for design-system import
failures, and the Settings form rendered them raw — so every non-English
locale saw English text in an otherwise localized UI.
The fix routes the error envelope through `designSystemImportErrorKey`,
which maps `code` (`BAD_REQUEST` / `INTERNAL_ERROR`) to a new i18n
key. The localized summary replaces the raw English as the user-facing
message, while the raw daemon detail (paths, URLs) remains accessible
under a <details> disclosure for diagnostics.
- New runtime helper: `apps/web/src/runtime/design-system-import-error.ts`
- 3 new i18n keys across all 19 locales
- Component change: `DesignSystemsSection.tsx` stores the full error
envelope (with `code`) instead of just the message string
- Red spec: `DesignSystemsSection.test.tsx` proves the raw English is
no longer the primary visible text in zh-CN
- Unit tests for the code-to-key mapping
Fixes#2686
'settings.designSystemsImportErrorInvalid': 'Design-System konnte nicht importiert werden. Überprüfen Sie den Pfad oder die URL und versuchen Sie es erneut.',
3461
+
'settings.designSystemsImportErrorInternal': 'Das Design-System konnte aufgrund eines internen Fehlers nicht importiert werden. Bitte versuchen Sie es erneut.',
0 commit comments