Skip to content

Commit

Permalink
[i18n] Supress expected translation/fallback warnings (#1867)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Dec 11, 2024
1 parent 20a3a95 commit e7733d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export const i18n = createI18n({
ru,
ja,
ko
}
},
// Ignore warnings for locale options as each option is in its own language.
// e.g. "English", "中文", "Русский", "日本語", "한국어"
missingWarn: /^(?!settingsDialog\.Comfy_Locale\.options\.).+/,
fallbackWarn: /^(?!settingsDialog\.Comfy_Locale\.options\.).+/
})

/** Convenience shorthand: i18n.global */
Expand Down

0 comments on commit e7733d9

Please sign in to comment.