日本語

Internationalization (i18n)

Project-level locale paths around the otherwise monolingual Nuxt UI template.

Internationalization

Not included end to end by the official template. Its current source has one content collection and sets the document language to English. Nuxt itself can use @nuxtjs/i18n, but that is a separate integration.

This sample deliberately uses a smaller static approach: authored content/en/ and content/ja/ trees, route-derived <html lang>, and a header control that replaces only the locale segment while preserving the page suffix.

LocaleContent rootPublic prefix
Englishcontent/en//en/
Japanesecontent/ja//ja/

The project guarantees counterpart parity; the template does not translate text.