mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🐛 Bug Report: can't set language #188
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ilyakonovalenko on GitHub.
Reproduction steps
Change language on the
/settings/accountExpected behavior
Language changed.
Actual Behavior
Language is not getting changed. An error:
Request failed with status code 403Version and Environment
v. 1.1.0
Log Output
No response
@ilyakonovalenko commented on GitHub:
The instance is behind nginx, so it could be a reason, I will check.
No, it does not work. The interface is in English but both my systems are in Russian. Demo instance on the Pocket ID website is in English as well.
@ilyakonovalenko commented on GitHub:
The user is admin and the instance is not using LDAP. The issue is happening right after initial setup, so I used docker compose to setup, that's it. As for the other values - yes, all other settings are changed just fine.
Another thing is default language for the instance. I don't see any way to set default language :-(
@kmendell commented on GitHub:
@stonith404 Maybe we add a ENV vriable that would allow setting the globa language? similar to how the other UI config is overridden?
@stonith404 commented on GitHub:
I suspect that the issue could be caused by something that is in front of Pocket ID like a reverse proxy.
Could you please copy the
PUTrequest to/api/users/meas a curl command then append the-vflag to the copied command, execute it in the terminal and share the output? Make sure to remove any sensitive data.Regarding the default language, I don't think this is necessary because it automatically tries to use the language your computer is set to. Does this not work?
@stonith404 commented on GitHub:
Can you share some more information about the user? Is it an admin or LDAP user? Is he able to change other values like his first name?
@ilyakonovalenko commented on GitHub:
As for the language change, the reason was disabled "Enable self-account editing" option. I believe it should not block language change... Else all inputs should be disabled.
@ilyakonovalenko commented on GitHub:
It seems it detects the language now. Thank you!
@stonith404 commented on GitHub:
Can you test
v1.2.0and let me know if it detects the language automatically? You might have to clear the cookies first and make sure that you didn't set a language manually in the settings.I'm closing this issue because the original bug is fixed, but feel free to still comment here.
@ilyakonovalenko commented on GitHub:
Both devices have ru_RU as a locale.
@stonith404 commented on GitHub:
Okay thanks, this should be fixed in
6c00aaa3ef.Regarding the detection of your locale, to which locale is your computer set "Russian", "Russian, Moldova" or "Russian, Belarus"?