funktionswerk / hapi-i18n

Translation module for hapi based on mashpie's i18n module
MIT License
39 stars 22 forks source link

Issue 22 support accept language header #23

Closed kaywolter closed 5 years ago

epochslee commented 5 years ago

Very cool, that seemed to have worked. Is there support for rendering variable passed to the JSON from Handlebars at the moment?

kaywolter commented 5 years ago

I don't know if this is possible, never tested it. But I added a sample on how to use plural forms with i18n with https://github.com/funktionswerk/hapi-i18n/pull/23/commits/ab1e87f4577345808018188fae6ee407fa095331, I guess that passing variables should work similar.

epochslee commented 5 years ago

I don't know if this is possible, never tested it. But I added a sample on how to use plural forms with i18n with ab1e87f, I guess that passing variables should work similar.

Worked for me 🎆