Scripts: improve help text for removeTranslationString.ts

This commit is contained in:
Pieter Vander Vennet 2025-05-03 23:43:13 +02:00
parent 097e07c747
commit eb7a7ad63c

View file

@ -18,7 +18,7 @@ async function main(args: string[]) {
if (args.length !== 1) {
console.log(
"Usage: first argument is the fully qualified key of the string to remove. Removes translations in the core translations, unless '--layers' or '--themes' is given"
"Usage: first argument is the fully qualified key of the string to remove. Removes translations in the core translations, unless '--layers' or '--themes' is given. In the latter case, use `<layername>.path.to.translations. Keep in mind that items with an 'id' use the id instead of the index."
)
return
}
@ -42,12 +42,12 @@ async function main(args: string[]) {
if (removedLanguages.length === 0) {
console.warn("No items removed. Doublecheck the paths")
} else {
console.log("Removed items in " + removedLanguages.join(", "))
console.log("Removed items in " + removedLanguages.join(", "), ";", removedLanguages.length, "in total")
}
}
const args = [...process.argv]
args.splice(0, 2)
main(args).then((_) => {
main(args).then(() => {
console.log("All done!")
})