Skip to content

refactor(web): centralize i18n translations#21

Merged
technowizard merged 3 commits into
mainfrom
refactor/centralize-i18n-translations
May 28, 2026
Merged

refactor(web): centralize i18n translations#21
technowizard merged 3 commits into
mainfrom
refactor/centralize-i18n-translations

Conversation

@technowizard
Copy link
Copy Markdown
Owner

Summary

Centralizes the web app i18n resources around the default translation namespace and removes the old common namespace usage.

Changes

  • Move translation files from src/locales/{lang}/common.json to src/translations/{lang}.json
  • Add centralized i18n resource registration in src/lib/i18n/resources.ts
  • Move i18n initialization to src/lib/i18n/index.ts
  • Replace useTranslation('common') with useTranslation() across web components, hooks, and pages
  • Update Vitest i18n setup to use the new translation resource shape
  • Update i18next TypeScript augmentation to target i18next

@technowizard technowizard self-assigned this May 28, 2026
@technowizard technowizard merged commit fceb7c5 into main May 28, 2026
2 checks passed
@technowizard technowizard deleted the refactor/centralize-i18n-translations branch May 28, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant