Closed kaareal closed 11 years ago
Same problem. As an output I got simple {} - that's it. It does not work for swig
I'm using it with swig with that syntax by registering the methods as dynamic helpers - let me know if it isn't working for you, for some reason: https://github.com/jeresig/i18n-node-2/blob/master/i18n.js#L80
As far as I can tell from http://paularmstrong.github.com/swig/ The closet thing is a create a custom tag {% __ Hello world %} the syntax would be something like that. Not as elegant.
Is the code example {{ __("Welcome to:") }} {{ title }} just meant as some pseudo code ?
or do you got some super awesome code that would make the code example work?