Formatting Values

Value formatting is possible in several widgets using the ICU messages syntax.

The symbol 0 is used to interpolate the current value in a message. For example, the message {0} days with the value 12 is formatted into the string "12 days".

When interpolating the current value into a message, it is possible to use specialized formatters with the following syntax:

{0, format, style}

The following ICU formats are supported: number, duration, date and time.