Add a language without reorganizing your app
This example keeps translated content next to the feature that owns it. The normal application remains English-only until you deliberately reuse the pattern in a page you choose.
Keep one content owner
Place each language in an explicit directory:
examples/i18n/content/
βββ en/documentation.mdx
βββ fr/documentation.mdx
The documentation example imports these files directly. They are not registered with the real Fumadocs collection, so enabling the showcase does not add localized production documentation routes.
Adopt the pattern one page at a time
- Add matching message keys to both catalogs.
- Pass the selected catalog to the component that owns the page.
- Format dates and numbers with the selected locale.
- Add focused proof for the translated copy and unchanged business values.
Start with one customer-facing surface. Expand only when the product needs another translated owner.
Preserve business truth
A locale may change how a fixed date, number, or USD amount is displayed. It must not change the stored value, selected Stripe price, tax behavior, authentication, or access.
That boundary makes this example safe to copy without pretending the whole application has already been internationalized.