Skip to content

Commit

Permalink
Fix ignored languages (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Dec 5, 2021
1 parent a50b5ca commit 46aec80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/localize/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function localize(language: string, string: string, replace?: Record<stri
.replace(/['"]+/g, "")
.replace("-", "_");

if (!languages[lang]) {
if (IGNORE_LANGUAGES.has(lang) || !languages[lang]) {
if (!IGNORE_LANGUAGES.has(lang) && !warnings.language?.includes(lang)) {
warnings.language.push(lang);
logger.warn(
Expand Down

0 comments on commit 46aec80

Please sign in to comment.