-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unify frontend and backend language preference using shared cookie #333
Comments
This seems to be an issue with the backend not beeing communicated the current language to. Here is how Django determines the current language:
For me the message is always english, which means that Django determines it by We currently dont use language patterns e.g. So the best option, would be to set a cookie with the language code when switching the language in the frontend. The default name of the cookie is Next.JS accepts a special cookie which needs to be called We would have only one cookie for frontend and backend language. (Currently, we have no cookie for this, and we save the language in local storage.) |
The |
… shared cookies frontend: switch to cookie-based language selection; backend: use newly created cookie to determine user preferred backend language; fix: error messages that are received from the backend are correctly translated Closes #333
Bug Report
Problematic behavior
Here you can see "Doc private" appears in English but the user interface is in French.
https://github.com/user-attachments/assets/0ae0e457-15f7-423c-b4bc-c1c5fc9d48bc
Same when I'm loading a doc I don't have access to. The message only is available in French even if I sent the interface in English and reload.
The text was updated successfully, but these errors were encountered: