Re:JavaScript Internationalization API
by pixelcort on Thursday December 25, 2014 @05:48PM
(#8797423)
This is pretty nice! One thing I wish were mentioned is pluralization. I see far too many checks for length !== 1 in JS code.
[ Parent
| on HN ]
Re:JavaScript Internationalization API
by fourstar on Thursday December 25, 2014 @09:37PM
(#8797815)
That should directly be a part of the templating language directly. Since this js parses your DOM, add a helper to the template language (if it doesn't already exist), spit out the pluralized version, then localizejs will take over.