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 3a342ad commit b3a1d8f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/get-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export default class GetText {
return result( [ 500, message ] );
}

// XXX
#parseCallExpression ( ast, node, { start } = {} ) {
let method;

Expand Down Expand Up @@ -265,9 +264,12 @@ export default class GetText {
start,
} );

// XXX singular must be template

// XXX must be trmplate
if ( !singular.isTemplate || !plural.isTemplate ) {
throw this.#error( `Plural message must be msgid tagged template`, {
node,
start,
} );
}

extractedMessage.pluralId = plural.value;
}
Expand Down

0 comments on commit b3a1d8f

Please sign in to comment.