TIK Cheatsheet

This cheatsheet will help you write textual internationalization keys (TIKs).

{text}

Represents an arbitrary text value.

ExampleAvoid comparing {text} to {text}.
ICUAvoid 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.

ExampleYour number is {integer}
ICUYour number is {var0, number, integer}

{number}

Represents a decimal number value.

ExampleIt's off by {number} degrees.
ICUIt's off by {var0, number} degrees.

{# ...}

Pluralizes ... to the correct CLDR plural form.

ExampleYou have {# unread messages} in {# groups}.
ICUYou have {var0, plural, one{# unread message} other{# unread messages}} in {var1, plural, one{# group} other{# groups}}

{ordinal}

Represents a CLDR ordinal plural value.

ExampleYou are {ordinal} in the queue.
ICUYou are {var0, selectordinal, one{#st} two{#nd} few{#rd} other{#th}} in the queue.

{date-short}

Represents a CLDR short date.

ExampleToday is {date-short}
ICUToday is {var0, date, short}

{date-medium}

Represents a CLDR medium date.

ExampleToday is {date-medium}
ICUToday is {var0, date, medium}

{date-long}

Represents a CLDR long date.

ExampleToday is {date-long}
ICUToday is {var0, date, long}

{date-full}

Represents a CLDR full date.

ExampleToday is {date-full}
ICUToday is {var0, date, full}

{time-short}

Represents a CLDR short time.

ExampleIt's {time-short}
ICUIt's {var0, time, short}

{time-medium}

Represents a CLDR medium time.

ExampleIt's {time-medium}
ICUIt's {var0, time, medium}

{time-long}

Represents a CLDR long time.

ExampleIt's {time-long}
ICUIt's {var0, time, long}

{time-full}

Represents a CLDR full time.

ExampleIt's {time-full}
ICUIt's {var0, time, full}

{currency}

Represents an amount of money.

ExampleThe price is {currency}
ICUThe price is {var0, number, ::currency/auto}