Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 710 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 710 Bytes

po-brunch

Adds Portable Object support to brunch.

With this plugin you will be able to import translation .po files in Javascript.

It basically converts .po files into javascript objects which can be used in libraries like Jed.

Installation

Install the plugin via npm with npm install --save-dev po-brunch.

Configuration

This plugin relies on library po2json. The configuration you can use in portableObject brunch plugin key is the same you can use with po2json parse methods.

modules.exports = {
  // ...
  plugins: {
    portableObject: {
      format: 'raw'
    }
  }
};