Skip to content

[LiveComponent] Component loses locale with every render #231

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

Closed
Lustmored opened this issue Jan 20, 2022 · 0 comments · Fixed by #239
Closed

[LiveComponent] Component loses locale with every render #231

Lustmored opened this issue Jan 20, 2022 · 0 comments · Fixed by #239

Comments

@Lustmored
Copy link
Contributor

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant