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 ...
It should accept an optional parameter, the culture (i.e. en-US, fr-fr, ...) by default it applies 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 basic idea of the function
ordinal(culture)is to convert1to1st,2to2nd,3to3rd,4to4th,11to11th...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