Loading...
Loading...
Internationalize Nuxt applications with @nuxtjs/i18n. Use when configuring locales or browser detection, translating messages or routes, building locale switchers, handling fallbacks, lazy-loading messages, or adding locale SEO.
npx skill4agent add onmax/nuxt-skills nuxt-i18n@nuxtjs/i18nnuxt.config.*i18n/i18n.config.*defaultLocalenuxt.configi18n.confignuxi prepare| Task | Open |
|---|---|
| Installation, locale objects, file layout, browser detection, or Vue I18n config | Configuration |
| Translation keys, interpolation, plurals, dates, numbers, or runtime message loading | Messages |
| Route strategies, localized links, switchers, custom paths, dynamic slugs, or SEO | Routing and SEO |
| Nuxt pages, middleware, data fetching, SSR state, or server routes | |
npx nuxi@latest module add @nuxtjs/i18nexport default defineNuxtConfig({
modules: ['@nuxtjs/i18n'],
i18n: {
defaultLocale: 'en',
locales: [
{ code: 'en', language: 'en-US', name: 'English', file: 'en.json' },
{ code: 'fr', language: 'fr-FR', name: 'Français', file: 'fr.json' },
],
},
}){
"welcome": "Welcome"
}i18n/locales/