We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@nuxtjs/i18n
flatJson
1 parent dbf604c commit ad5cbb5Copy full SHA for ad5cbb5
apps/frontend/app/layouts/default.vue
@@ -2,9 +2,7 @@
2
const route = useRoute()
3
const { t } = useI18n()
4
const head = useLocaleHead({
5
- addDirAttribute: true,
6
- identifierAttribute: 'id',
7
- addSeoAttributes: true,
+ key: 'id',
8
})
9
const title = computed(() => route.meta.title && t(route.meta.title))
10
</script>
apps/frontend/i18n.config.ts apps/frontend/i18n/i18n.config.ts
@@ -10,5 +10,4 @@ export default defineI18nConfig(() => ({
en,
11
vi,
12
},
13
- flatJson: true,
14
}))
apps/frontend/nuxt.config.ts
@@ -73,7 +73,7 @@ export default defineNuxtConfig({
73
74
i18n: {
75
baseUrl: import.meta.env.NUXT_PUBLIC_FRONTEND_URL,
76
- vueI18n: './i18n.config.ts',
+ vueI18n: 'i18n.config.ts',
77
strategy: 'no_prefix',
78
defaultLocale: 'en',
79
locales: [
0 commit comments