Skip to content

Commit

Permalink
chore: update i18n locale strategy comments
Browse files Browse the repository at this point in the history
  • Loading branch information
timothejoubert committed Jun 10, 2024
1 parent 59202f9 commit 1172d3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export default defineNuxtConfig({
},
// https://v8.i18n.nuxtjs.org/getting-started/setup
i18n: {
// Use no_prefix strategy to avoid redirecting localized paths without locale prefix
strategy: 'prefix_except_default',
detectBrowserLanguage: false,
defaultLocale,
Expand Down
1 change: 1 addition & 0 deletions pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ definePageMeta({
pageTransition: defaultPageTransition,
})
// Let Roadiz webResponse url define locale strategy
defineI18nRoute(false)
const { webResponse, item, error } = await useRoadizWebResponse<RoadizNodesSources>()
Expand Down

0 comments on commit 1172d3b

Please sign in to comment.