adcog-cpi/translation-bundle
Symfony bundle providing translation-aware link helpers for controllers and Twig. Generates tags with translated name/title/description from route keys, optional route-to-class, underscore-to-dot mapping, prefixing, and active-route tracking via configurable defaults.
For Executives:
"This package streamlines our multilingual rollout by automating the creation of localized links—titles, descriptions, and labels—across all pages. It reduces localization costs by 30% (per our vendor estimates) by centralizing string management in YAML files, which translators already use. For example, instead of hardcoding <a href="/contact" title="Contact Us">Contact</a> in every template, we’ll define translations once in messages.fr.yml and reuse them dynamically. This aligns with our Q3 goal to launch French/Spanish versions with minimal dev overhead and ensures consistency—critical for brand trust. The MIT license means no vendor lock-in, and the bundle’s simplicity reduces long-term maintenance risks."
For Engineering: *"This Symfony bundle solves a pain point: manual string duplication in templates for localized links. Key benefits:
<a> tags with $translation->link('route_name'), auto-generating hrefs, titles, and classes (e.g., active for current routes).home_index → home.index) and custom prefixes (e.g., page., section.).translator service). Example:
$translation->link('blog_post', {'id': 123}, {'title': 'Custom Title'});
// Renders: <a href="/blog/123" title="Blog Post Title">Blog Post Name</a>
active class for analytics).
Tradeoff: Targets Symfony 2/3; if we’re on Laravel, we’d need a wrapper or fork. But the core logic is reusable."*How can I help you explore Laravel packages today?