From 8deff0ac2902e8c32af97b48f44982e6f5a97e17 Mon Sep 17 00:00:00 2001 From: zdm Date: Wed, 14 Feb 2024 11:10:31 +0200 Subject: [PATCH] fix: tramslations --- lib/package/localization.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/package/localization.js b/lib/package/localization.js index c4860326..3300a690 100644 --- a/lib/package/localization.js +++ b/lib/package/localization.js @@ -275,7 +275,7 @@ export default class { } // translation memory conflict - if ( translatedMessageHash !== messageHash ) { + if ( messageHash !== translatedMessageHash ) { console.log( `Translation memory conflict found: - [en]: ${ message.id } - [en]: ${ message.pluralId || "-" } @@ -290,9 +290,13 @@ ${ JSON.stringify( message.translations, null, 4 ) } const choise = await utils.confirm( "What translations do you want to use?", [ "n", "o" ] ); if ( choise === "n" ) { + + // XXX this.#storeMessage( poFile.language, message ); } else { + + // XXX message.setTranslations( translatedMessage.translations ); } }