-
Notifications
You must be signed in to change notification settings - Fork 8
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
Dynamic output does not work with hoganjs templates #13
Comments
Hello yar0d, thank you for your response. Is good to see that people using lingua with different template engines. One aim of lingua is to make it compatible with as much template engines as possible. I never used hogan.js in any of my projects before so that I have to create a testcase to see what really happens. Give me a little bit of time to do some research as I'm pretty busy with other stuff at the moment. //André |
Hi. I'm also interested in using express-lingua with Hogan. Is there any chance that this issue was resolved? Many thanks, |
express-lingua does not support Hogan.js. After some research I do not see a way to support this template engine in the near future. There might be a possibility in using the "lambda expression" like {{#lingua.greeting}}{{/lingua.greeting}} but it does not really execute the respective compile function within lingua. I do not use Hogan in any of my projects. So there might be a way. Any idea regarding this topic is much appreciated. |
This might not directly relate to lingua, but we did get this working with i18n-node / Express.js / Hogan.js by using Hogan lambdas. Express.js config:
Contents of "view-locale" file:
|
Hello,
I'm using Express + Hogan + Lingua for my application. Static translations works well, but dynamic output always results in an empty translation.
Can you help me, please ?
Here is my template test.hjs
And the nodejs module test.js
My en.json file
The rendered result :
My i18n test app
Thanks
The text was updated successfully, but these errors were encountered: