angular-gettext-extract-loader
v1.0.0
Published
Extracts gettext strings from matched files.
Downloads
127
Maintainers
Readme
Loader to extract gettext strings from an angular project.
webpack
compaitable with webpack ^4.0.0
Installation
npm i -D angular-gettext-extract-loader
Usage
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.