Loader to extract gettext strings from an angular project.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

angular-gettext-extract-loader

Loader to extract gettext strings from an angular project.

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.