KnpLabs / DoctrineBehaviors

Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
http://knplabs.com
MIT License
913 stars 293 forks source link

Message should fallback to fallback locale and not to default locale #722

Open raffcioo opened 1 year ago

raffcioo commented 1 year ago

In my app I have default locale set to PL and fallback locale set to EN. When I have request with DE locale the returned translated message is in PL, shouldn't it be in EN? It looks like when there is no translation for DE it returns default locale message and not fallback locale message... At least it works this way when translating normal strings, having request with DE locale, app translated strings fallback like they should to fallback locale EN, but DB translated strings fallback to default locale PL what is wrong, they also should fallback to fallback locale EN...