angular-gettext-extract-loader

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i angular-gettext-extract-loader

Weekly Downloads

21

Version

1.0.0

License

MIT

Unpacked Size

5.05 kB

Total Files

4

Last publish

Collaborators

  • wombleton