mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 07:20:23 +05:30
Исправлен сборщик переводов
This commit is contained in:
parent
adfc95d93d
commit
bb397201e2
@ -38,7 +38,7 @@ if (duplicateIds.length) {
|
|||||||
console.log('\nFound duplicated ids:');
|
console.log('\nFound duplicated ids:');
|
||||||
duplicateIds.forEach((id) => console.log(`${chalk.yellow(id)}:\n - ${idToFileMap[id].join('\n - ')}\n`));
|
duplicateIds.forEach((id) => console.log(`${chalk.yellow(id)}:\n - ${idToFileMap[id].join('\n - ')}\n`));
|
||||||
console.log(chalk.red('Please correct the errors above to proceed further!'));
|
console.log(chalk.red('Please correct the errors above to proceed further!'));
|
||||||
return;
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
duplicateIds = null;
|
duplicateIds = null;
|
||||||
@ -84,7 +84,8 @@ keysToUpdate = Object.entries(prevMessages).reduce((acc, [key, message]) =>
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!keysToAdd.length && !keysToRemove.length && !keysToUpdate.length && !keysToRename.length) {
|
if (!keysToAdd.length && !keysToRemove.length && !keysToUpdate.length && !keysToRename.length) {
|
||||||
return console.log(chalk.green('Everything is up to date!'));
|
console.log(chalk.green('Everything is up to date!'));
|
||||||
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(chalk.magenta(`The diff relative to default locale (${DEFAULT_LOCALE}) is:`));
|
console.log(chalk.magenta(`The diff relative to default locale (${DEFAULT_LOCALE}) is:`));
|
||||||
|
Loading…
Reference in New Issue
Block a user