jeresig / i18n-node-2

Lightweight simple translation module for node.js / express.js with dynamic json storage. Uses common __('...') syntax in app and templates.
MIT License
507 stars 79 forks source link

__n() treats zero as singular #71

Closed boris-glumpler closed 8 years ago

boris-glumpler commented 8 years ago

Given that we have the following function:

i18n.__n('%s movie', '%s movies', 0);

We get 0 movie back. Surely, this should be 0 movies? Is there a specific reason for this behaviour?

Cheers!

gjuchault commented 8 years ago

In fact; it depends a lot of the language. In English; 0 is considered plural; in French not, and so on.

gjuchault commented 8 years ago

Actually we'll see how https://github.com/jeresig/i18n-node-2/issues/78 resolves