Skip to content

Commit ad5cbb5

Browse files
committed
fix: @nuxtjs/i18n v9 migrations, also remove flatJson enable: intlify/vue-i18n#2010
1 parent dbf604c commit ad5cbb5

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

apps/frontend/app/layouts/default.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
const route = useRoute()
33
const { t } = useI18n()
44
const head = useLocaleHead({
5-
addDirAttribute: true,
6-
identifierAttribute: 'id',
7-
addSeoAttributes: true,
5+
key: 'id',
86
})
97
const title = computed(() => route.meta.title && t(route.meta.title))
108
</script>

apps/frontend/i18n.config.ts apps/frontend/i18n/i18n.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ export default defineI18nConfig(() => ({
1010
en,
1111
vi,
1212
},
13-
flatJson: true,
1413
}))

apps/frontend/nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default defineNuxtConfig({
7373

7474
i18n: {
7575
baseUrl: import.meta.env.NUXT_PUBLIC_FRONTEND_URL,
76-
vueI18n: './i18n.config.ts',
76+
vueI18n: 'i18n.config.ts',
7777
strategy: 'no_prefix',
7878
defaultLocale: 'en',
7979
locales: [

0 commit comments

Comments
 (0)