fix: OAuth 2.0 i18n warn

This commit is contained in:
xingyu4j
2025-11-07 15:17:08 +08:00
parent 2788964c62
commit a3dcb150a3

View File

@@ -108,7 +108,7 @@ async function setupI18n(app: App, options: LocaleSetupOptions = {}) {
// 在控制台打印警告
i18n.global.setMissingHandler((locale, key) => {
if (options.missingWarn && key.includes('.')) {
if (options.missingWarn && key !== 'OAuth 2.0' && key.includes('.')) {
console.warn(
`[intlify] Not found '${key}' key in '${locale}' locale messages.`,
);