airbnb / polyglot.js

Give your JavaScript the ability to speak many languages.
http://airbnb.github.io/polyglot.js
BSD 2-Clause "Simplified" License
3.7k stars 207 forks source link

Document pluralization order #17

Open terinjokes opened 9 years ago

terinjokes commented 9 years ago

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

spikebrehm commented 9 years ago

Good call. We should document that.

orientalperil commented 9 years ago

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

spikebrehm commented 9 years ago

@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 commented 8 years ago

:+1: for a documentation on this :)

belkosyak commented 8 years ago

:+1: for docs

xpepermint commented 7 years ago

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