Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Mar 6, 2024
1 parent 61fc4da commit 4fa54df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineNuxtPlugin({
.map((l) => clean(l.split(';')[0]))
.filter((l) => options.locales.includes(l))[0]

if (headerLocale && cookieLocale !== options.defaultLocale) {
if (headerLocale && headerLocale !== options.defaultLocale) {
return navigateTo(`/${headerLocale}`)
}

Expand All @@ -47,7 +47,7 @@ export default defineNuxtPlugin({
: '')
: ''

if (browserLocale && cookieLocale !== options.defaultLocale) {
if (browserLocale && browserLocale !== options.defaultLocale) {
return navigateTo(`/${browserLocale}`)
}
}
Expand Down

0 comments on commit 4fa54df

Please sign in to comment.