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

Frontend language change should inform the backend #16

Open
olemartinorg opened this issue Sep 6, 2022 · 1 comment
Open

Frontend language change should inform the backend #16

olemartinorg opened this issue Sep 6, 2022 · 1 comment
Labels
kind/feature-request New feature or request org/ssb Issues relevant for Statistisk sentralbyrå.

Comments

@olemartinorg
Copy link
Contributor

Description

Language support was added in this PR, by having an app return all the supported languages to the frontend for the language selector to work. However, when the app language is changed in frontend, the backend is not informed about it in any way, which makes it impossible for validation messages etc to be adjusted.

Suggestion

  • Add/set a cookie from frontend informing the backend about the language change. This should be validated against the available languages on the backend, and an internal API should expose it.
  • Invoke ProcessDataRead again after changing the language, making it possible to manipulate the data model after language changes.

Additional Information

Discussion on slack

@olemartinorg olemartinorg added the kind/feature-request New feature or request label Sep 6, 2022
@StianVestli
Copy link

org/ssb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request org/ssb Issues relevant for Statistisk sentralbyrå.
Projects
Status: No status
Development

No branches or pull requests

2 participants