-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The first translation on the child item will be translated to the fallback language #766
Comments
Same issue here, after some investigations, it seems to be linked to |
Yep, if i set it to |
Still an issue as setting this parameter to |
Sadly yes, but i'm using it currently in a Symfony 6.4.8 project (i'm trying to avoid 7 'til i can, since older/smaller bundles can conflict like this issue) |
We hit this as well, but as we use our own translatable trait, it was easily fixable without submitting it here. The only thing you need is to override the if ($this instanceof Proxy && !$this->__isInitialized()) {
$this->__load();
} The issue is that non-mapped properties ( I have created a PR as well: #767 |
When listing an entity's childs, the first translation on the child item will be translated to the fallback language, the 2nd and 3rd in the list is using the current locale correctly.
Eg. the first one will be the fallback language, the rest will be the current locale:
{% for item in list %} {{ item.country.name }}<br/> {% endfor %}
If forcing the translation to the currenct locale with
.translate(app.request.locale)
it worksI'm using this bundle for 4-5 years now but got this issue twice only in many projects.
Any tips or suggestions?
The text was updated successfully, but these errors were encountered: