webfactory / WebfactoryPolyglotBundle

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

Allow per-entity instance primary locales #50

Open mpdude opened 4 months ago

mpdude commented 4 months ago

For now, each entity class has one fixed primary locale, expressed through the Locale attribute.

We have encountered cases in which some records were only available in a language different from the primary locale.

Therefore, it would be nice if we could remove the primary locale attribute and retrieve this information from a property, on a per-entity instance level. This would allow every entity instance to define its own primary locale.