Skip to content

Commit

Permalink
fix: tramslations
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Feb 13, 2024
1 parent 82fb0f3 commit 9e18183
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/package/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9e18183

Please sign in to comment.