|
From: Felipe G. <fe...@fe...> - 2022-10-31 19:29:07
|
> On Oct 31, 2022, at 14:42, jdison16--- via icu-support <icu...@li...> wrote:
>
> Hello!
>
> Is it possible to format numbers like this: 3 -> 3rd, 4 -> 4th, etc? (in different locales).
Yes, via ordinal.
Example with Perl:
perl -MUnicode::ICU -e'print Unicode::ICU::MessageFormat->new()->format("{0, ordinal}", [23])'
23rd
-FG
|