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

Document pluralization order #17

Open
terinjokes opened this issue Oct 14, 2014 · 6 comments
Open

Document pluralization order #17

terinjokes opened this issue Oct 14, 2014 · 6 comments

Comments

@terinjokes
Copy link
Contributor

Knowing the delimiter is "||||" is useful, but to format our translations correctly it's also useful to know the order of:

  • "zero"
  • "one"
  • "two"
  • "few"
  • "many"
  • "other"
@spikebrehm
Copy link
Collaborator

Good call. We should document that.

@orientalperil
Copy link

Why use '||||' as the delimiter? Why not use an array or object which are more natural structures in JavaScript?

@spikebrehm
Copy link
Collaborator

@hekevintran the |||| is an artifact of the Airbnb translation system. It could be possible to allow Polyglot to also support a different data structure, like an object or array.

@Phyks
Copy link

Phyks commented Dec 23, 2015

👍 for a documentation on this :)

@belkosyak
Copy link

👍 for docs

@xpepermint
Copy link

A good example: http://i18njs.com/#pluralisation

@ljharb ljharb reopened this Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants