Nuxt i18n
Title
Subtitle
Features Title
Nuxt3
Auto Import
Seo
Routing
Lazy Loading
Ssr
Devtools
Nitro
Hybrid
Title
Description
// 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>