File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ const breadcrumbs = computed<BreadcrumbItem[] | null>(() => {
4747 }
4848 return items
4949})
50+
51+ // force locale to be set to 'en' for the app
52+ const { setLocale } = useI18n ()
53+ await setLocale (' en' )
5054 </script >
5155
5256<template >
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ useHead({
88 },
99 ],
1010})
11+
12+ const { setLocale } = useI18n ()
13+ await setLocale (' en' )
1114 </script >
1215
1316<template >
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ export default defineNuxtConfig({
5555
5656 i18n : {
5757 defaultLocale : 'en' ,
58+ // add no_prefix to avoid prefixing the locale in the URL like /de/...
59+ strategy : "no_prefix" ,
5860 locales : [
5961 {
6062 code : 'en' ,
You can’t perform that action at this time.
0 commit comments