feat: add translations:check command

This commit is contained in:
Nybkox
2025-02-20 22:15:09 +01:00
parent b1ba887922
commit 5396b3f1fb
2 changed files with 15 additions and 1 deletions

View File

@@ -146,4 +146,17 @@ program
}
});
program
.command('check')
.description('Check if there are multiple default values for the same key')
.action(async () => {
try {
await extractAllTranslations(defaultExtractConfig.directories, defaultExtractConfig.extensions);
} catch (error) {
console.error(error);
console.error('Error during check:', error.message);
process.exit(1);
}
});
module.exports = { program };