babel-gettext-extractor
JSON →Babel plugin to extract gettext strings from JavaScript/JSX code, supporting ES6+ and JSX syntax. Current stable version is 4.1.3, maintained by Sentry. It is a fork of babel-gettext-plugin with added support for references and earlier Node.js versions. Works with Babel 7. Key differentiators: flexible configuration of function names, custom output file naming via a callback, base directory for relative paths, and optional whitespace stripping from template literals. Alternatives like babel-plugin-react-intl focus on React Intl, while this plugin targets the standard gettext workflow.
Traffic · last 30 days ↑40% vs prev 7d
total hits 26
actors 7 distinct systems
last hit 1d ago ByteDance
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇪🇸 Spain
Resources
API endpoints
full doc /v1/registry/babel-gettext-extractor
compatibility /v1/registry/babel-gettext-extractor/compatibility