Skip to content

Commit

Permalink
fix: tramslations
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Feb 14, 2024
1 parent 38914bf commit 8deff0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/package/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "-" }
Expand All @@ -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 );
}
}
Expand Down

0 comments on commit 8deff0a

Please sign in to comment.