diff --git a/lib/get-text.js b/lib/get-text.js index 6a5939d6..41d88448 100644 --- a/lib/get-text.js +++ b/lib/get-text.js @@ -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 ], @@ -146,7 +146,7 @@ export default class GetText { }, "l10nt": ( msgId, plural, pluralNumber ) => { - this.#poFile.addMessages( { + this.#poFile.addEctractedMessages( { [ msgId ]: { "pluralId": plural, "references": [ this.#relativePath ], @@ -278,7 +278,7 @@ export default class GetText { message.references = reference; - this.#poFile.addMessages( { [ id ]: message } ); + this.#poFile.addEctractedMessages( { [ id ]: message } ); } #parseMessage ( node, { start } = {} ) { diff --git a/lib/package/localization.js b/lib/package/localization.js index 8d957bb4..15caa078 100644 --- a/lib/package/localization.js +++ b/lib/package/localization.js @@ -147,7 +147,7 @@ export default class { } if ( extracted[ key ] ) { - extractedMessages.addMessages( extracted[ key ] ); + extractedMessages.addEctractedMessages( extracted[ key ] ); } }