Skip to content

Commit

Permalink
fix: translations
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Feb 17, 2024
1 parent d516b91 commit 7981a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/get-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }` ];
}
}

Expand Down
1 change: 1 addition & 0 deletions lib/package/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default class {
return result( isTranslated ? 200 : 500, status );
}

// XXX
async update () {
await this.#initTranslationMemory();

Expand Down

0 comments on commit 7981a3b

Please sign in to comment.