diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index 1637a80..5226880 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -17,7 +17,7 @@ export default defineNuxtPlugin({ addRouteMiddleware( 'nuxt-i18n-middleware', async (to) => { - if (to.meta.ssr !== false) { + if (to.meta.ssr === false) { const cookie = useCookie('locale') const locale = useState('locale') locale.value = cookie.value || locale.value || options.defaultLocale