Description
Fluent implicitly formats arguments in three situations:
- Numbers in placeables are formatted using
NumberFormatter
- Dates in placeables are formatted using
DateFormatter
- Numbers in selector are formatted using
PluralRules
The result is that the following are roughly equivalent:
key = { PLURAL($emailCount) ->
[one] You have one email
*[other] You have { NUMBER($emailCount) } emails
key2 = Today is { DATETIME($date) }
and
key = { $emailCount ->
[one] You have one email
*[other] You have { $emailCount } emails
key2 = Today is { $date }
The localizer can still decide to use the explicit formatter if they want to pass parameters:
key2 = Today is { DATETIME($date, month: "long") }
but in most cases, the implicit formatting does the job.