@kaliber/po-loader

Uses gettext to load po file


Keywords
webpack, po, gettext
License
MIT
Install
npm install @kaliber/po-loader@1.0.0

Documentation

@kaliber/po-loader

Simple webpack loader for po files

Installation

yarn add @kaliber/po-loader

Usage

This package is made to work with webpack but is used by kaliber in combination with @kaliber/build

// config/default.js

module.exports = {
  webpackLoaders: [
    {
      test: /\.po$/,
      loaders: [{ loader: '@kaliber/po-loader' }]
    },
  ],
}
import nl from '/translations/nl.po' // this will return the parsed contents of the po file

// your application that reads the contents of the po file.

Disclaimer

This library is intended for internal use, we provide no support, use at your own risk.