avoo/serializer-translation
Fractal or Spatie).trans()) but lacks integration with API responses.For Executives: "This package lets us automatically translate API responses (e.g., error messages, user prompts) in real-time based on the user’s locale, without manual string replacements. For example, a ‘Welcome’ message in JSON responses can dynamically switch between languages. It’s a lightweight, open-source solution that aligns with our Symfony/Laravel stack and reduces localization costs by centralizing translation logic in serialization metadata. Risk is low—it’s MIT-licensed and integrates with existing tools like JMS Serializer."
For Engineers: *"If we’re already using JMS Serializer, this adds translation support for serialized properties via annotations/XML/YAML. Key benefits:
@AvooSerializer\Translate()).welcome %name%) via expr(object.getProperty())..yml files.
Tradeoff: The package is archived, but it’s minimal and MIT-licensed. We’d need to vet it for our use case (e.g., test with our serialization setup)."*How can I help you explore Laravel packages today?