{"library":"babel-gettext-extractor","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"4.1.3","tags":["javascript","babel","gettext","plugin","i18n"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-gettext-extractor","imports":["module.exports = { plugins: ['babel-gettext-extractor'] }","module.exports = { plugins: [['babel-gettext-extractor', { headers: { 'content-type': 'text/plain; charset=UTF-8' } }]] }","const babel = require('babel'); babel.transform(code, { plugins: ['babel-gettext-extractor'] })"]},{"cmd":"yarn add babel-gettext-extractor","imports":[]},{"cmd":"pnpm add babel-gettext-extractor","imports":[]}],"homepage":null,"github":"https://github.com/getsentry/babel-gettext-extractor","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-gettext-extractor","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-gettext-extractor/compatibility"}}