Toby
Waterhole
Founder
Jun 4, 2023
In reply to
Subarist
Subarist
May 30, 2023
I know why we misunderstood...
It's so small that I didn't notice it
especially when the navi bar is a bit long...
Can we specify a default language?
image.png
Can we specify a default language?
In most cases you shouldn't need to, since Waterhole defaults to the closest matching preferred language to the Accept-Language
header sent by the browser. If there's no good match, it will default to the first locale defined in Extend\Locales
(English). If you needed to change this you could remove the English locale:
Extend\Locales::remove('en');
After several days of testing and interaction with other site admins, we suggest that it is still necessary to have a "default" language parameter instead of removing the "EN" language option.
In most non-English operating systems, browsers cannot accurately determine the language automatically.
This situation is similar to some flrum extensions where, in our usage environment, the current language cannot be automatically detected.
Alternatively, there are scenarios where users are accustomed to operating in an English environment but visit a new discussion forum where they would like to see the familiar language menu directly.
Furthermore, English is the primary international language and it serves a necessary purpose.
Therefore, if circumstances permit, having a default language option would be a popular choice.