From eb7a7ad63caf6d64a8715b5c9f307fdd495306f4 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 3 May 2025 23:43:13 +0200 Subject: [PATCH] Scripts: improve help text for removeTranslationString.ts --- scripts/removeTranslationString.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/removeTranslationString.ts b/scripts/removeTranslationString.ts index 931625af7..f09d5b978 100644 --- a/scripts/removeTranslationString.ts +++ b/scripts/removeTranslationString.ts @@ -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 `.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!") })