You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using typesafe-i18n with React.js and importing LL class for text translations for itens with plural rules, some numbers above 0 are not recognized as plural, for example:
<LineLabel> {LL.fit.programsPage.item.numberOfWorkouts(workoutsLength as number)} </LineLabel>
Version
5.26.1
Describe the bug
When using
typesafe-i18n
withReact.js
and importingLL
class for text translations for itens with plural rules, some numbers above0
are not recognized as plural, for example:<LineLabel> {LL.fit.programsPage.item.numberOfWorkouts(workoutsLength as number)} </LineLabel>
numberOfWorkouts: '{{ No workouts | 1 workout | ?? workouts }}',
This should return No workouts for
0
workoutsLength
, 1 workout for1
workoutsLength
and any other number above2
should returnnumber
workouts.And it does for a variaty of numbers, but every number that ends with
1
or2
(above 20) is either 1 workout or workouts (without the number)Reproduction
React component:
Translation:
Logs
Config
Additional information
No response
The text was updated successfully, but these errors were encountered: