(fix) Keep example sentences in plural if counter wraps around

Introduced in 89e8ec45
This commit is contained in:
Valentyne Stigloher 2023-11-16 19:05:17 +01:00
parent 3f3a4095fb
commit 80b373a659

View File

@ -40,7 +40,7 @@ export class Example {
}
parts(pronoun, counter = 0) {
const plural = this.isHonorific ? pronoun.pluralHonorific[counter] : pronoun.plural[counter];
const plural = this.isHonorific ? pronoun.isPluralHonorific(counter) : pronoun.isPlural(counter);
return this[plural ? 'pluralParts' : 'singularParts'];
}