We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The basic idea of the function ordinal(culture) is to convert 1 to 1st, 2 to 2nd, 3 to 3rd, 4 to 4th, 11 to 11th ...
ordinal(culture)
1
1st
2
2nd
3
3rd
4
4th
11
11th
It should accept an optional parameter, the culture (i.e. en-US, fr-fr, ...) by default it applies en-GB.
en-US
fr-fr
en-GB
11 | ordinal => 11th 11 | ordinal(en-us) => 11th 11 | ordinal(fr-fr) => 11e 11 | ordinal(nl-be) => 11de 11 | ordinal(pt-pt) => 11º
More info on https://github.com/BenjaminVanRyseghem/numbro/tree/develop/languages
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The basic idea of the function
ordinal(culture)
is to convert1
to1st
,2
to2nd
,3
to3rd
,4
to4th
,11
to11th
...It should accept an optional parameter, the culture (i.e.
en-US
,fr-fr
, ...) by default it appliesen-GB
.More info on https://github.com/BenjaminVanRyseghem/numbro/tree/develop/languages
The text was updated successfully, but these errors were encountered: