diff --git a/lib/get-text.js b/lib/get-text.js index 0030c7a2..ccf3b7b6 100644 --- a/lib/get-text.js +++ b/lib/get-text.js @@ -280,7 +280,7 @@ export default class GetText { // references const { line, column } = this.#getNodeLocation( node.arguments[ 0 ], { start } ); - single.reference = `${ this.#relativePath }:${ line }:${ column }`; + single.references = [ `${ this.#relativePath }:${ line }:${ column }` ]; } // plural @@ -297,7 +297,7 @@ export default class GetText { // references const { line, column } = this.#getNodeLocation( node.arguments[ 1 ], { start } ); - plural.reference = `${ this.#relativePath }:${ line }:${ column }`; + plural.references = [ `${ this.#relativePath }:${ line }:${ column }` ]; } } diff --git a/lib/package/localization.js b/lib/package/localization.js index b1a5d4ee..b3a1ceef 100644 --- a/lib/package/localization.js +++ b/lib/package/localization.js @@ -79,6 +79,7 @@ export default class { return result( isTranslated ? 200 : 500, status ); } + // XXX async update () { await this.#initTranslationMemory();