From 497f67483838e38680c159046e97816f90b3d4ba Mon Sep 17 00:00:00 2001 From: Raymond Luong Date: Mon, 16 Dec 2024 12:54:58 -0700 Subject: [PATCH] Specify return type for plural rule --- .../ClientApp/src/xforge-common/i18n.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/i18n.service.ts b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/i18n.service.ts index d7efed5ff2..a7893be6b6 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/i18n.service.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/i18n.service.ts @@ -395,10 +395,10 @@ export class I18nService { .find(e => e.type === 'timeZoneName').value; } - /** Takes a number and returns a string representing the plural-related rule for the current locale. + /** Takes a number and returns a rule representing the plural-related rule for the current locale. * Possible values include 'zero', 'one', 'two', 'few', 'many', and 'other'. */ - getPluralRule(number: number): string { + getPluralRule(number: number): Intl.LDMLPluralRule { return new Intl.PluralRules(this.locale.canonicalTag).select(number); }