Skip to content

feat: add i18n support with next-intl (English + Spanish)#427

Closed
devAgatha wants to merge 1 commit into
AnnabelJoe:mainfrom
devAgatha:feat/262-i18n
Closed

feat: add i18n support with next-intl (English + Spanish)#427
devAgatha wants to merge 1 commit into
AnnabelJoe:mainfrom
devAgatha:feat/262-i18n

Conversation

@devAgatha
Copy link
Copy Markdown
Contributor

Summary

Integrates next-intl for multi-language UI support with English and Spanish translations.

Changes

  • next-intl@3.26.5 added as dependency
  • src/i18n/request.ts — locale config reading from cookie, defaults to en
  • messages/en.json + messages/es.json — all user-facing strings externalized
  • src/components/LanguageSwitcher.tsx — EN/ES toggle in navbar
  • src/app/api/locale/route.ts — POST endpoint to set locale cookie
  • src/app/layout.tsx — wrapped with NextIntlClientProvider, locale-aware <html lang>
  • src/components/navbar.tsx — uses useTranslations() for all nav strings
  • next.config.ts — wrapped with createNextIntlPlugin

Acceptance Criteria

  • next-intl integrated
  • English and Spanish supported
  • Language switcher in the navigation
  • All user-facing strings externalized to translation files

Closes #262

…e#262)

- Integrate next-intl 3.26.5
- Add en.json and es.json translation files for all user-facing strings
- Add LanguageSwitcher component in navbar (cookie-based locale persistence)
- Add POST /api/locale endpoint to set locale cookie
- Update layout to provide NextIntlClientProvider with locale-aware messages

Closes AnnabelJoe#262
@AnnabelJoe AnnabelJoe closed this Jun 3, 2026
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.

Add internationalization (i18n) support for multi-language UI

2 participants