-
-
Notifications
You must be signed in to change notification settings - Fork 36
Collect all possible MessageFormat use cases #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I dare anyone to translate this example to Arabic, using external selectors only:
|
I posted my degenerate-case message example in this comment on #103. |
Here's an example from Mozilla's Common Voice website, in Fluent syntax. The message uses from independent plurals: activity-needed-calculation-plural = { NUMBER($totalHours) ->
[one] {$totalHours} hour
*[other] {$totalHours} hours
} is achievable in just over { NUMBER($periodMonths) ->
[one] {$periodMonths} month
*[other] {$periodMonths} months
} if { NUMBER($people) ->
[one] {$people} person
*[other] {$people} people
} record { NUMBER($clipsPerDay) ->
[one] {$clipsPerDay} clip
*[other] {$clipsPerDay} clips
} a day. |
@comment 2
This allows even nicer final result by allowing the exclusion of the You only add to the list the features that have a count > 0. |
So the final result would be something like this (the "all plural" case)
This is how I would "attack" it:
We have duration formatters in ICU. "Support custom / pluggable "formatters" (beside Date/Time/Number ...)" #22 "Have pluggable “formatters”(Date/Time/Number ...)" #3 "IMHO the future MF API should be focused on providing a low-level set of APIs extending the built-in Intl with reusable and pluggable formatters etc..." #2 |
This issue appears to be duplicated by other issues and is not being used to track all use cases. The discussion of examples above is a good one, but is now stale. If you are considering reopening this issue, please think about opening a new issue or issues with specific change requests. |
The goal is to collect real/possible examples for message format. That way we can create a dataset of formats and use cases that will allow us to evaluate and understand the real needs of the users.
Please add below all the use cases you can find
** This issue is duplication of #2 **
The text was updated successfully, but these errors were encountered: