Skip to content

wombleton/angular-gettext-extract-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Loader to extract gettext strings from an angular project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published