Skip to content

[LiveComponent] Component loses locale with every render #231

@Lustmored

Description

@Lustmored

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 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions