-
-
Notifications
You must be signed in to change notification settings - Fork 35
Labels
formattingIssue pertains to the formatting section of the specIssue pertains to the formatting section of the specrequirementsIssues related with MF requirements listIssues related with MF requirements list
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.
Metadata
Metadata
Assignees
Labels
formattingIssue pertains to the formatting section of the specIssue pertains to the formatting section of the specrequirementsIssues related with MF requirements listIssues related with MF requirements list