Skip to content

i18n locale detection does not fall back gracefully for unsupported locales #654

@hman38705

Description

@hman38705

Labels: frontend, i18n
Priority: Low

Description

frontend/src/lib/i18n.ts handles internationalization but may not gracefully fall back to English when an unsupported locale is detected from the browser. This could result in missing translation keys being rendered as raw keys.

Context

frontend/I18N_GUIDE.md documents the i18n approach. The fallback behavior should be explicit and tested.

Acceptance Criteria

  • Unsupported locales fall back to en without errors
  • Missing translation keys log a warning in development and render the key in production
  • Unit tests in i18n.test.ts cover fallback scenarios

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions