Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed May 7, 2024
1 parent 632057e commit ba43dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba43dc8

Please sign in to comment.