(value: string, locale: string)
| 14 | * Returns the plural case based on the locale |
| 15 | */ |
| 16 | export function getPluralCase(value: string, locale: string): string { |
| 17 | const plural = getLocalePluralCase(locale)(parseInt(value, 10)); |
| 18 | const result = pluralMapping[plural]; |
| 19 | return result !== undefined ? result : 'other'; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * The locale id that the application is using by default (for translations and ICU expressions). |
no test coverage detected
searching dependent graphs…