Skip to content

Commit

Permalink
fix: fix toggle locale warning (nuxt-modules#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
zenonux authored Apr 12, 2023
1 parent 34ecfac commit 83e2abb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ export async function loadLocale(
}
}
} else {
console.warn(formatMessage('Could not find ' + locale + ' locale code in localeMessages'))
if (!loadedLocales.includes(locale)) {
console.warn(formatMessage('Could not find ' + locale + ' locale code in localeMessages'))
}
}
}

Expand Down

0 comments on commit 83e2abb

Please sign in to comment.