coffreo/jms-translation-js-extractor-bundle
.js files.Adopt if:
.js files (e.g., i18next, gettext, or custom t() helpers).Look elsewhere if:
vue-i18n’s built-in extraction or babel-plugin-i18n for JS-only projects.For Executives: "This package automates the extraction of translation strings from JavaScript files, integrating seamlessly with our existing Symfony localization workflow. By reducing manual work in maintaining translation catalogs—especially for JS-heavy apps—it cuts localization costs by [X]% while improving consistency. Low-risk (MIT license, minimal maintenance) and aligns with our i18n roadmap."
For Engineering/DevOps:
"A lightweight Symfony bundle that extends JMS Translation Bundle to parse JS files (e.g., Vue/React templates) for extractable strings. Plugs into our CI pipeline to auto-generate .po/.xlf files from JS, eliminating flaky regex hacks. Zero dev overhead—just composer require and configure paths. Tradeoff: Assumes JS uses standard t() or i18n patterns; edge cases may need tweaks."
For Developers:
*"Need to extract translations from your .js files without writing custom scripts? This bundle hooks into JMS Translation Bundle to scan JS for t(), i18n.t(), or similar patterns and spit out .po files. Works with Symfony Flex or manual setup. Example:
composer require coffreo/jms-translation-js-extractor-bundle
# Configure in config/packages/jms_translation.yaml:
jms_translation:
extractors:
js: ~
```*
*Pro tip: Pair with `php-translation-js-extractor-bundle` if you also need PHP file support."*
How can I help you explore Laravel packages today?