You have {count, plural,
one {1 item}
other {# items}}
⟹ You have 5 items
Globalize jquery/globalize |
iLib | Messageformat.js slexaxton/messageformat.js |
|
---|---|---|---|
Variable substitution | ✔️ Powered by slexaxton/messageformat.js |
✔️ but with different syntax |
|
Select | ✔️ Powered by slexaxton/messageformat.js |
||
Plural | ✔️ Powered by santhoshtr/cldrpluralruleparser |
✔️ |
Variable substitution
Simple variable replacement.
Select
It supports the creation of internationalized messages by selecting phrases based on keywords. It's often used to select gender.
Plural
It supports the creation of internationalized messages with plural inflection by returning the appropriate message based on value's plural group: zero, one, two, few, many, or other.