-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
At Cash we're using ICU plurals instead of Android ones, but that's mainly an artifact of our translation pipeline. Other projects might decide to keep Android plurals and it would be nice to support them.
We could maybe do something like:
<plurals name="bagel_order">
<item quantity="zero">{name} does not order any bagels</item>
<item quantity="one">{name} orders an everything bagel</item>
<item quantity="other">{name} orders {quantity} everything bagels</item>
</plurals>
class FormattedPluralResource constructor(
@StringRes val id: Int,
val quantity: Int,
val arguments: Any,
)
fun bagel_order(quantity: Int, name: Any): FormattedPluralResource {...}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request