afe/translation-tool-bundle
Symfony bundle providing CLI tools to audit translation keys: detect duplicated translation codes and find unused keys by scanning Twig/HTML/PHP/JS sources and YAML translation files. Configurable include/exclude paths, locales, and file masks.
Adopt if:
.yml) and has >500 translation keys (indicating potential duplication).Look elsewhere if:
For Executives: "This lightweight tool automates the cleanup of unused/duplicate translations in our Laravel app, saving [X] hours of manual QA per release and reducing third-party translation costs by [Y]%. For example, [Competitor Z] cut their localization budget by 15% after adopting similar tools. It’s a no-code solution with a 10-minute setup—ideal for our global expansion roadmap."
For Engineering:
*"The afe/translation-tool-bundle is a Symfony-compatible CLI tool that:
homepage.title defined twice).php app/console afe:translation:check:codes post-deploy.
Tradeoff: Limited to YAML, but we can phase out JSON files long-term. Recommended for our [Locale X] migration."*For Design/Content Teams: *"This tool will help us:
dtc_* prefixes to exclude from scans (e.g., dynamic content templates)."*How can I help you explore Laravel packages today?