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 just noticed that live components are not sending locale information in any way, thus enforcing backend to render with default locale every time (or maybe I'm missing something?). I can work around that in components themselves, but it'd be great to utilize all that Symfony offers for that.
I think best approach would be to have another live component route - one with locale (like localized_live_component with route /_components/{_locale}/{component}/{action} or something) so that Symfony would handle all the hard work.
I am unsure if this approach seems legit and how to wire it up with frontend in a reasonable way, thus just an issue for now and PR might follow if we agree upon actual solution 👍
The text was updated successfully, but these errors were encountered:
I just noticed that live components are not sending locale information in any way, thus enforcing backend to render with default locale every time (or maybe I'm missing something?). I can work around that in components themselves, but it'd be great to utilize all that Symfony offers for that.
I think best approach would be to have another live component route - one with locale (like
localized_live_component
with route/_components/{_locale}/{component}/{action}
or something) so that Symfony would handle all the hard work.I am unsure if this approach seems legit and how to wire it up with frontend in a reasonable way, thus just an issue for now and PR might follow if we agree upon actual solution 👍
The text was updated successfully, but these errors were encountered: