Webpack loader that converts GNU gettext PO files into JavaScript modules compatible with Jed and similar i18n libraries. Current stable version is 2.1.0, maintained as part of the Sentry ecosystem. The loader reads PO catalog files and exports them as JSON objects that can be consumed by runtime libraries. It has a peer dependency on gettext-parser and integrates seamlessly with webpack's module system. Compared to other i18n loaders, it is minimal and focused solely on PO file transformation.
npm install po-catalog-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to configure webpack to load .po files using po-catalog-loader and import them as JSON modules.
Use the exported JSON directly with Jed or other libraries that expect the gettext-parser format.
Consider using @formatjs/intl-gettext-loader or other modern alternatives for advanced webpack 5 features.
Update your runtime code to handle the new JSON format (e.g., Jed expects the old format; you may need to transform the output).
npm install gettext-parser --save-dev
Use 'po-catalog-loader' as a string or { loader: 'po-catalog-loader' } in the rule.npm install po-catalog-loader --save-dev