A webpack loader that converts GNU gettext PO files to JSON using gettext-parser. Version 1.0.0 is the latest stable release, published once. It integrates into webpack build pipelines for i18n workflows, outputting JSON that can be further processed by json-loader. Simpler than using gettext tools directly, but has no active maintenance or updates. Differentiates by offering a direct Webpack integration without additional configuration.
npm install po-gettext-loaderVerified import paths — ran on the pinned version, not inferred.
Shows webpack configuration to load .po files, converting them to JSON then bundling.
Add json-loader in the use array after po-gettext-loader as shown in quickstart
Consider using @formatjs/intl-gettext-loader or writing a custom loader
Chain with json-loader as shown
Add json-loader to the rule: { test: /\.po$/, use: [ 'json-loader', 'po-gettext-loader' ] }Run npm install gettext-parser --save-dev