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 2b5fd19 commit 0fdeb96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/package/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ ${ JSON.stringify( message.translations, null, 4 ) }
message.isFuzzy = false;
message.setTranslations( translatedMessage.translations );
}

// pre-translate single form
else if ( cloudTranslationApi && !message.translations?.[ 0 ] ) {
const res = await cloudTranslationApi.translate( poFile.language, message.id );

Expand Down

0 comments on commit 0fdeb96

Please sign in to comment.