With Angular-gettext we extract annotated strings from html as specified in Gruntfile.js
:
grunt.initConfig({
nggettext_extract: {
pot: {
files: {
'po/template.pot': ['src/views/*.html']
}
},
},
})
Is it possible to extract strings from javascript files too?
I have a case where I'm generating strings from an angularjs controller:
<textarea ng-model="generatedCSV"></textarea>
the header row of the CSV is:
"Full Name", "Email"
Which needs translating to other languages.
Is there a nice way to do this with angular-gettext?