-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance i18n function to handle floats #8464
Labels
Milestone
Comments
bep
changed the title
Enhance i18n function to handle floats
Enhance i18n function to round floats
Apr 24, 2021
bep
changed the title
Enhance i18n function to round floats
Enhance i18n function to handle floats
Apr 24, 2021
bep
added a commit
to bep/hugo
that referenced
this issue
Apr 24, 2021
The go-i18n library expects plural counts with floats to be represented as strings. Fixes gohugoio#8464
bep
added a commit
to bep/hugo
that referenced
this issue
Apr 24, 2021
The go-i18n library expects plural counts with floats to be represented as strings. Fixes gohugoio#8464
bep
added a commit
to bep/hugo
that referenced
this issue
Apr 24, 2021
The go-i18n library expects plural counts with floats to be represented as strings. Fixes gohugoio#8464
bep
added a commit
to bep/hugo
that referenced
this issue
Apr 24, 2021
The go-i18n library expects plural counts with floats to be represented as strings. Fixes gohugoio#8464
bep
added a commit
that referenced
this issue
Apr 25, 2021
The go-i18n library expects plural counts with floats to be represented as strings. Fixes #8464
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
i18n/en.toml
Test results with e4dc9a8:
T "hour" 1
T "hour" 1.5
T "hour" 2
T "hour" "1"
T "hour" "1.5"
T "hour" "2"
The existing float test passes because, in English, 22.5 and 22 both belong to the
other
cardinal category as defined by the CLDR plural rules.I am unsure why test 5 passes while test 2 fails.
In Polish 100 and 100.0 should be handled differently.
i18n/pl.toml
Test results with e4dc9a8:
T "day" 1
T "day" 2
T "day" 100
T "day" 100.0
The text was updated successfully, but these errors were encountered: