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 b6b7f33 commit 2700eaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/get-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default class GetText {
#parseYaml ( content ) {
const locale = {
"l10n": ( msgId, plural, pluralNumber ) => {
this.#poFile.addMessages( {
this.#poFile.addEctractedMessages( {
[ msgId ]: {
"pluralId": plural,
"references": [ this.#relativePath ],
Expand All @@ -146,7 +146,7 @@ export default class GetText {
},

"l10nt": ( msgId, plural, pluralNumber ) => {
this.#poFile.addMessages( {
this.#poFile.addEctractedMessages( {
[ msgId ]: {
"pluralId": plural,
"references": [ this.#relativePath ],
Expand Down Expand Up @@ -278,7 +278,7 @@ export default class GetText {

message.references = reference;

this.#poFile.addMessages( { [ id ]: message } );
this.#poFile.addEctractedMessages( { [ id ]: message } );
}

#parseMessage ( node, { start } = {} ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/package/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class {
}

if ( extracted[ key ] ) {
extractedMessages.addMessages( extracted[ key ] );
extractedMessages.addEctractedMessages( extracted[ key ] );
}
}

Expand Down

0 comments on commit 2700eaf

Please sign in to comment.