Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webpack-angular-gettext

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-angular-gettext

Webpack plugin that extracts text for angular-gettext.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by300%
Maintainers
2
Weekly downloads
 
Created
Source

webpack-angular-gettext

Webpack plugin & loader that extract translatable strings from your source files for angular-gettext.

Based on webpack-angular-translate and angular-gettext-extract-loader.

Getting started

Install the plugin using npm:

npm install --save-dev webpack-angular-gettext

Configure the loader and the plugin in the webpack configuration.

var WebpackAngularGettext = require('webpack-angular-gettext');

module.exports = {
  // ...
  module: {
    preLoaders: [
      {
        test: /\.html$/,
        exclude: /node_modules/,
        loader: WebpackAngularGettext.loader()
      },
      {
        test: /\.js$/,
        loader: WebpackAngularGettext.loader()
      }
    ]
  }

  plugins: [
    new WebpackAngularGettext.Plugin()
  ]
};

The Plugin() accepts the following options in the constructor:

  • fileName: The name of the file that contains all the translations, default translations.pot

FAQs

Package last updated on 14 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc