Loader to extract gettext strings from an angular project.
compaitable with webpack ^4.0.0
npm i -D angular-gettext-extract-loader
Add it into the pipeline for js & html loading:
modules: {
...
loaders: [
...
{
test: /src.*\.js$/,
loader: 'angular-gettext-extract-loader?pofile=po/template.pot'
},
{
test: /src.*\.html$/,
loader: 'angular-gettext-extract-loader?pofile=po/template.pot'
},
...
]
...
}
This will output all strings found to the the configured pofile.