Functions

When you write an annotation in your MessageFormat message, then underneath the hood, the formatter calls a function. These could either be built-in functions that aim to assist you in performing common i18n operations like formatting common data types or custom functions that are registered by the user in the function registry. The syntax for making function calls is as follows, with the operand followed by the function name and finally the options.

Today is {$date :datetime weekday=long}.

Check out {:img src=|image.png|}.
{"date": "2024-06-06"}