-
Notifications
You must be signed in to change notification settings - Fork 459
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
Internationalisation with Jade template engine? #445
Comments
Yes you should be able to do this. Are you thinking a single set of jade templates which would draw content from any of multiple locale directories? That would be analogous to all our current examples (which use dust). You can use bundalo to convert the locale-appropriate properties file into JSON which you can then put into the view model prior to I don't have a lot of experience with Jade, but what I have is on the server-side. If you don't plan to render Jade templates on the client (not sure if anybody does that) then the above high-level approach should work. I'd be happy to work with you on this. |
Sounds cool, but the issue it that since syntax is a bit different, I am not really sure how to set up config files and grab i18n values inside Could you note, what changes should I add to |
I'd like to do that. But I probably can't do so terribly quickly. As a small tidbit in the meantime, we are using bundalo here to grab the correct locale content, and we include the content in the data model in |
Ah, I see. Thanks. I'll try it. |
Is it possible to have a kraken app that uses Jade as a template engine and at the same time contains internationalisation?
The text was updated successfully, but these errors were encountered: