From 9e1818324dd33220107addd27b7e7ccc2759a38e Mon Sep 17 00:00:00 2001 From: zdm Date: Tue, 13 Feb 2024 18:06:19 +0200 Subject: [PATCH] fix: tramslations --- lib/package/localization.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/package/localization.js b/lib/package/localization.js index 7619d5db..8f236e27 100644 --- a/lib/package/localization.js +++ b/lib/package/localization.js @@ -8,6 +8,7 @@ import sql from "#core/sql"; import env from "#core/env"; import url from "node:url"; import CloudTranslationApi from "#core/api/google/cloud/translation"; +import * as utils from "#core/utils"; env.loadUserEnv(); @@ -195,9 +196,12 @@ New translations: ` ); // XXX - const useNew = true; + const choise = await utils.confirm( "What translations do you want to use?", [ "new", "old" ] ); - if ( useNew ) { + // XXX + console.log( "----", choise ); + process.exit(); + if ( choise === "n" ) { this.#storeMessage( poFile.language, message ); } else {