-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document a simple use case from start to finish #51
Comments
Looking more closely at the examples, perhaps I just need to be thinking of it being the template that is using the library and provided data to render the work rather than the library being passed the template and data to return a result, and that the use case I am talking about is just for an API. |
I think where I am getting confused, is that these examples don't use a translations.json file like what would be generated from https://github.com/fwalzel/handlebars-i18n-cli but instead 'hard code' the translations in the "resources". |
Using this with nodemailer and handlebars. In hbs file we use
|
Thanks for the amazing module.
Maybe the readme makes more sense for people who are already using handlebars, but I am looking to implement it in products to make use of your work with i18n, so it's unclear for me.
The readme doesn't seem to provide a simple use case of passing both the language variables AND the regular handlebars variables AND the 18n template to the library to return the appropriate language output with the regular handlebars placeholders filled in.
Maybe this could be added in the Quick Example or under the API section?
The text was updated successfully, but these errors were encountered: