Skip to content

Commit 58f8536

Browse files
committed
made nitpick changes
1 parent 11e7563 commit 58f8536

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/helpers/check-locales.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,10 @@ function validateLocales(): void {
131131

132132
if (langsWithMissingKeys.length > 0) {
133133
logger.info(`\nMissing keys in '${file}':`);
134-
hasErrors = langsWithMissingKeys.reduce((hasError, [lang, missing]) => {
134+
langsWithMissingKeys.forEach(([lang, missing]) => {
135135
logger.error(`❌ Language '${lang}' is missing these keys: ${missing.join(', ')}`);
136-
137-
return true;
138-
}, hasErrors);
136+
});
137+
hasErrors = langsWithMissingKeys.length > 0 ? true : hasErrors;
139138
}
140139
}
141140

0 commit comments

Comments
 (0)