Skip to content

Commit

Permalink
fix: fix toggle locale warning (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
zenonux committed Apr 12, 2023
1 parent f7925d1 commit 00810d0
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 00810d0

Please sign in to comment.