Merge branch 'fix-plurals' into 'main'

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

See merge request PronounsPage/PronounsPage!382
This commit is contained in:
Andrea Vos 2023-11-17 07:15:15 +00:00
commit 6121872c23

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'];
}