webfactory / WebfactoryPolyglotBundle

Symfony bundle simplifying translations in Doctrine.
MIT License
3 stars 2 forks source link

Add a `TranslatableChain` #32

Closed mpdude closed 6 months ago

mpdude commented 6 months ago

Add a TranslatableChain object that can pick translations from a series of TranslatableInterface instances.

This is useful e.g. when you have "fallback" objects or data and want to display their data in case no translation is available on a "base" object.