Aller-Couleur / handlebars-i18n

handlebars-i18next.js adds the internationalization features of i18next and Intl to handlebars.js
Other
16 stars 6 forks source link

Plural example add documentation #45

Closed AdrienEtienne closed 1 year ago

AdrienEtienne commented 1 year ago

Hi,

I am not sure if I am using it the wrong way. But I cant have the plural example working. Everything else is working great as much I can tell.

So maybe the documentation needs to be more explicit on how to use it?

My npm modules are :

    "handlebars": "^4.7.7",
    "handlebars-i18n": "^1.5.0",

Is plurals working for you?

fwalzel commented 1 year ago

Thanks for realizing this. i18next changed its specs from JSON v2 to v3 recently see here. I added the param { compatibilityJSON: 'v2' } in handlebars-i18n v1.5.1 to the examples. Should work when you update handlebars-i18n in your npm modules to latest version.

AdrienEtienne commented 1 year ago

Ok great. The version 1.5.1 fixed that