leonelquinteros / gotext

Go (Golang) GNU gettext utilities package
Other
434 stars 58 forks source link

Bug in IsTranslatedN() #92

Closed donseba closed 1 month ago

donseba commented 10 months ago

Please describe your issue

Is this a bug, an improvement, a proposal or something else? Describe it.

this is an bug, checking if there is a translation for a plural uses the actual amount instead of the do.pluralForm(n) converter. this causes anuthing above 1 to basically fail

What's the expected behaviour, the current behaviour and the steps to reproduce it?

the expected behaviour would be to convert the actual number to the pluralization form .

Comments

I will create a PR that solves this issue.

donseba commented 9 months ago

@leonelquinteros it would help if you could have a look so we can move forward.