Skip to content

Commit 9b31392

Browse files
committed
fix(i18n): do not redirect to locale if 18n not enabled
1 parent 42eafb9 commit 9b31392

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layer/app/plugins/i18n.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export default defineNuxtPlugin(async () => {
2626

2727
nuxtApp.provide('locale', locale)
2828
nuxtApp.provide('localeMessages', resolvedMessages)
29+
30+
return
2931
}
3032

3133
addRouteMiddleware((to: RouteLocationNormalized) => {

0 commit comments

Comments
 (0)