Skip to content

Android <plurals> resources are ignored #62

@theisenp

Description

@theisenp

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions