Hide language preference for guest account
Closed this issue · 3 comments
Describe the Bug
Hi Guys,
First of all, muchas gracias, for what you have created so far :) Been enjoying BookStack
One issue I have stumbled upon though is it allowing me to select a language different to English under the default Guest user settings and even saving the settings, yet if I try loading the frontpage or go back to the user settings everything will still be in English with language settings defaulted back to English.
Works flawlessly for a standard user though
Thanks for your help and efforts
Steps to Reproduce
- Go to Settings >> Users >> Guest
- Set Preferred Language to anything but English
- Save settings
- Go to the landing page as a Guest user.
- Confirm everything is in English
- Go to Settings >> Users >> Guest
- Confirm Preferred Language is set to English
Expected Behaviour
Expect it to save language settings for a Guest user
Screenshots or Additional Context
No response
Browser Details
Chrome Version 131.0.6778.109 (Official Build) (64-bit)
Exact BookStack Version
BookStack v24.10.3
Hi @BuchoMarales,
The default language (and that used for guest users) can be configured as detailed in our docs here:
https://www.bookstackapp.com/docs/admin/language-config/
By default, the autodetection of the language based upon browser preferences will used, which is configured via a APP_AUTO_LANG_PUBLIC
as detailed on that page.
Maybe we should hide the language preference option though for the guest user to prevent future confusion, since it is effectively redundant.
@BuchoMarales Good to hear!
I've recategorised this issue to focus on, and made changes in a8ef820, to hide the language preference for the guest user to help avoid any similar confusion in future.
This will be part of the next feature release.