You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a workaround for this issue.
Try this: <script src="{{ url('bazinga_jstranslation_js',{"locales":app.request.locale~",en"}) }}"></script>
Its seems that the Bundle prefer the "non-fallback" locale.
Symfony and Bazinga fallback implementation seems to differ.
php isset
,isset
is false if value is null.js foo in bar
,foo in bar
is true if value is null.So given yaml:
Given
locale_fallback = 'en'
,locale = 'fr'
anddomain = 'messages'
:{{ 'foo'|trans }}
outputsstring: bar
Translate.trans('foo')
outputsnull
Could it be possible to drop all null values by the dumper?
The text was updated successfully, but these errors were encountered: