Skip to content
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

Allow to translate inside server actions #203

Open
mondeja opened this issue Aug 5, 2024 · 0 comments
Open

Allow to translate inside server actions #203

mondeja opened this issue Aug 5, 2024 · 0 comments
Labels
help wanted Extra attention is needed leptos-v0.7 proposal

Comments

@mondeja
Copy link
Owner

mondeja commented Aug 5, 2024

From a conversation on Discord, theorically should be possible to use the context on server actions. But this comes with several problems that need to be solved:

  • Is possible to store the I18n context in requests contexts like database pools?
  • If so, is implemented for Actix and Axum integrations on Leptos part?
  • How to know that we are in a server action when getting the context? That would allow to use the same syntax regardless of the location of the caller.
  • Can this only be implemented at the server initialization or can be expanded from the leptos_fluent! macro?
@mondeja mondeja added proposal help wanted Extra attention is needed labels Aug 5, 2024
@mondeja mondeja changed the title Allow to translate on server actions Allow to translate inside server actions Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed leptos-v0.7 proposal
Projects
None yet
Development

No branches or pull requests

1 participant