Hi,
It seems that the French plural option is not working properly as I have to put keys with a "_plural_1" suffixe to make it look as a plural version (instead of just "_plural").
It may be linked to the way the "fr" rule is written, which is slightly different from the "en" one (which is working) :
"fr": {
"name": "French",
"numbers": [
1,
2
],
"plurals": function(n) { return Number(n > 1); }
},
vs.
"en": {
"name": "English",
"numbers": [
2,
1
],
"plurals": function(n) { return Number(n != 1); }
},
Also, when I look at your code in the i18next lib, I found these lines quite strange in the _translate function :
if (pluralExtension >= 0) {
pluralKey = pluralKey + '_' + pluralExtension;
} else if (pluralExtension === 1) {
pluralKey = ns + ':' + key; // singular
}
The second part of the if statement will never be called, right ? :-)
When I use the "_plural_1" suffixe workaround, it is working though, but I just would like you to be aware of this issue.
Thanks to your module, we have finally put our website into production a few days ago at http://www.omiracle.fr, in French and in English as well. We've both used the client version and the server version of i18next, which is really working great !
(For information, our website is a "social" real estate listing service which helps users create/find a flatshare in Paris and its suburbs (at first, we hope to be able to add other cities and renting/selling as well), using social networks to get common friends and points of interest you may have with your future flatmates but also to communicate about your listings to all your relations in order to increase the chances you find someone interested)