Nuxt i18n
Nuxt i18n Integration
Full Nuxt 3 support with auto-imports, SSR, and Nitro compatibility.
Features
Nuxt 3 native module
Auto-import composables
SEO utilities (useHead, useSeoMeta)
Locale-based routing
Lazy loading locales
Full SSR support
Nuxt DevTools integration
Nitro server support
Hybrid rendering support
Quick Start
Add i18n to your Nuxt app with the module.
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@better-i18n/nuxt'],
betterI18n: {
project: 'my-org/my-project',
defaultLocale: 'en',
locales: ['en', 'tr', 'de']
}
})
// pages/index.vue
<script setup>
const { t } = useI18n()
</script>
<template>
<h1>{{ t('welcome') }}</h1>
</template>