node.js - Use plurals with i18n-node -


in en.json file have this:

{     "house": {         "one": "house",         "other": "houses"     } } 

but if try in ejs:

<%= __n('house', 3) %> 

or in handlebars

{{{__n 'house' 3}}} 

it renders "house", not "houses"

what doing wrong ?

thanks !


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -