Skip to content

Commit

Permalink
Specify return type for plural rule
Browse files Browse the repository at this point in the history
  • Loading branch information
RaymondLuong3 committed Dec 16, 2024
1 parent eb159e2 commit 497f674
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 497f674

Please sign in to comment.