I found this super informative and useful article about globalization using angular's gettext directive and grunt. Problem is, it seems to extract from .html
files only and I can't really get it running with jade.
I am using Node.js
for my server, together with Express.js
, so I convert my .jade
files to .html
files on the fly, on each user request. I really like the way express and jade fit together, so I am searching for a solution, which extracts translations from those jade files.
For now I tried changing the grunt task snippet to:
grunt.initConfig({
nggettext_extract: {
pot: {
files: {
'po/template.pot': ['**/*.jade']
}
}
}
});
And also adding the translation directive as I do for all other angular directives, e.g.:
h3(translate) About