Skip to content

feat(i18n): localize date/number formatting across landing with next-intl - #395

Open
peaceshallom37-rgb wants to merge 1 commit into
VertexChainLabs:mainfrom
peaceshallom37-rgb:feat/i18n-localization
Open

feat(i18n): localize date/number formatting across landing with next-intl#395
peaceshallom37-rgb wants to merge 1 commit into
VertexChainLabs:mainfrom
peaceshallom37-rgb:feat/i18n-localization

Conversation

@peaceshallom37-rgb

Copy link
Copy Markdown

Summary

Closes #140 — Localize date / number formatting across landing

Changes

  • Installed next-intl for App Router i18n
  • Created Frontend/messages/{en,fr,es}.json message catalogs
  • Created Frontend/src/i18n/ — routing config, request handler, navigation utils
  • Created Frontend/middleware.ts for locale detection and prefixing
  • Restructured app to app/[locale]/ layout + page for proper locale params
  • Localized components: Header, Features, Footer, CTA — all use useTranslations()
  • Preserved CTA purple highlight via t.rich() with <highlight> markup
  • Preserved Footer Stellar Network link via t.rich() with <stellar> markup
  • Updated Vitest setup with next-intl mocks — all 51 tests pass
  • Updated next.config.ts with next-intl/plugin

Acceptance Criteria

  • Landing page renders cleanly under /{locale} param
  • Strings extracted to en/fr/es message catalogs
  • CTA retains purple highlight styling across locales
  • Footer retains Stellar Network hyperlink
  • All existing tests continue to pass (0 regressions)

How to verify

cd Frontend && npm run dev
# Visit http://localhost:3000/en, /fr, /es

FWC26

USDC distribution via Stellar.

Adds internationalization support to the VertexChain frontend:
  - next-intl with en/fr/es starter locales
  - Message catalogs for landing page, header, footer, CTA
  - Locale-aware routing via [locale] dynamic segment + middleware
  - All landing components (Header, Features, Footer, CTA) use useTranslations()
  - CTA preserves purple highlight via t.rich()
  - Footer preserves Stellar Network link via t.rich()
  - Test setup updated with next-intl mocks; all 51 tests pass

Closes VertexChainLabs#140

Copy link
Copy Markdown
Author

@snowrugar-beep — requesting review for this PR. CI is pending first-time contributor approval. Thanks!

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.

Localize date / number formatting across landing

1 participant