Skip to content
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

Add support for string plurals #31

Open
RussellZornes opened this issue Jun 30, 2019 · 2 comments
Open

Add support for string plurals #31

RussellZornes opened this issue Jun 30, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@RussellZornes
Copy link

A way to deal with string plurals would be useful.

{
  "clicked": {
    "zero": "You didn't click",
    "one": "You clicked one time!",
    "other": "You clicked many times!"
  }
}

In code the strings would be accessed as...

Translation.of(context).clicked(times);

Where 'times' is an integer that would be used to map to plural entry.

@RussellZornes RussellZornes changed the title Support string plurals Add support for string plurals Jun 30, 2019
@narcodico
Copy link

This feature is a must to be honest.

@pogiedoge pogiedoge added the enhancement New feature or request label Mar 16, 2021
@pogiedoge pogiedoge added this to the v0.3.0 milestone Mar 16, 2021
@csbence10
Copy link
Collaborator

We've just started developing this feature. It will work similarly as @RussellZornes requested. We also plan to support languages with multiple plurals. Stay tuned 📻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants