Simple webpack loader for po files
yarn add @kaliber/po-loader
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.
This library is intended for internal use, we provide no support, use at your own risk.