Skip to content

Commit

Permalink
fix: @nuxtjs/i18n v9 migrations, also remove flatJson enable: int…
Browse files Browse the repository at this point in the history
  • Loading branch information
NamesMT committed Nov 16, 2024
1 parent dbf604c commit ad5cbb5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions apps/frontend/app/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
const route = useRoute()
const { t } = useI18n()
const head = useLocaleHead({
addDirAttribute: true,
identifierAttribute: 'id',
addSeoAttributes: true,
key: 'id',
})
const title = computed(() => route.meta.title && t(route.meta.title))
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ export default defineI18nConfig(() => ({
en,
vi,
},
flatJson: true,
}))
2 changes: 1 addition & 1 deletion apps/frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default defineNuxtConfig({

i18n: {
baseUrl: import.meta.env.NUXT_PUBLIC_FRONTEND_URL,
vueI18n: './i18n.config.ts',
vueI18n: 'i18n.config.ts',
strategy: 'no_prefix',
defaultLocale: 'en',
locales: [
Expand Down

0 comments on commit ad5cbb5

Please sign in to comment.