We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e7563 commit 58f8536Copy full SHA for 58f8536
scripts/helpers/check-locales.ts
@@ -131,11 +131,10 @@ function validateLocales(): void {
131
132
if (langsWithMissingKeys.length > 0) {
133
logger.info(`\nMissing keys in '${file}':`);
134
- hasErrors = langsWithMissingKeys.reduce((hasError, [lang, missing]) => {
+ langsWithMissingKeys.forEach(([lang, missing]) => {
135
logger.error(`❌ Language '${lang}' is missing these keys: ${missing.join(', ')}`);
136
-
137
- return true;
138
- }, hasErrors);
+ });
+ hasErrors = langsWithMissingKeys.length > 0 ? true : hasErrors;
139
}
140
141
0 commit comments