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!") })