{text}
Represents an arbitrary text value.
Example | Avoid comparing {text} to {text}. |
ICU | Avoid comparing {var0} to {var1} |
{name}
Represents an arbitrary text value with gender information.
Example | {name} received a message. |
ICU | {var0_gender, select, other{{var0}}} received a message. |
{integer}
Represents an integer number value.
Example | Your number is {integer} |
ICU | Your number is {var0, number, integer} |
{number}
Represents a decimal number value.
Example | It's off by {number} degrees. |
ICU | It's off by {var0, number} degrees. |
{# ...}
Pluralizes ...
to the correct CLDR
plural form.
Example | You have {# unread messages} in {# groups}. |
ICU | You have {var0, plural, one{# unread message} other{# unread messages}} in {var1, plural, one{# group} other{# groups}} |
{ordinal}
Represents a CLDR ordinal plural value.
Example | You are {ordinal} in the queue. |
ICU | You are {var0, selectordinal, one{#st} two{#nd} few{#rd} other{#th}} in the queue. |
{date-short}
Represents a CLDR short date.
Example | Today is {date-short} |
ICU | Today is {var0, date, short} |
{date-medium}
Represents a CLDR medium date.
Example | Today is {date-medium} |
ICU | Today is {var0, date, medium} |
{date-long}
Represents a CLDR long date.
Example | Today is {date-long} |
ICU | Today is {var0, date, long} |
{date-full}
Represents a CLDR full date.
Example | Today is {date-full} |
ICU | Today is {var0, date, full} |
{time-short}
Represents a CLDR short time.
Example | It's {time-short} |
ICU | It's {var0, time, short} |
{time-medium}
Represents a CLDR medium time.
Example | It's {time-medium} |
ICU | It's {var0, time, medium} |
{time-long}
Represents a CLDR long time.
Example | It's {time-long} |
ICU | It's {var0, time, long} |
{time-full}
Represents a CLDR full time.
Example | It's {time-full} |
ICU | It's {var0, time, full} |
{currency}
Represents an amount of money.
Example | The price is {currency} |
ICU | The price is {var0, number, ::currency/auto} |