New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-gettext-loader

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-gettext-loader

Webpack loader for angular-gettext

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
920
decreased by-49.73%
Maintainers
1
Weekly downloads
 
Created
Source

angular-gettext-loader

Webpack loader for angular-gettext. Intended for compilation only. Use angular-gettext-cli together with npm scripts for extraction. For details see official developer guide for angular-gettext.

Parameters

format

Values: javascript, json. Default value: javascript

Compilation format, where javascript means Angular module.

module

Type: {string}, default value: gettext

Angular module name.

Usage

module.exports = {
  module: {
    loaders: [
      // Bundle as angular module 
      {
        test: /basic.*\.po$/,
        use: [{
          loader: 'angular-gettext-loader',
          options: {
            module: 'myApp'
          }
        }]
      },
      // Bundle as json, to be injected with gettextCatalog.setStrings()
      {
        test: /\.po$/,
        type: 'asset/source',
        use: [{
          loader: 'angular-gettext-loader',
          options: {
            format: 'json'
          }
        }]
      },
      // Copy as json, to be loaded with gettextCatalog.loadRemote()  
      {
        test: /additional.*\.po$/,
        type: 'asset/resource',
        generator: {
          filename: 'translations/[name].[hash].json'
        },
        use: [{
          loader: 'angular-gettext-loader',
          options: {
            format: 'json'
          }
        }]
      }
    ]
  }
}  

Keywords

FAQs

Package last updated on 17 Nov 2021

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