Allow user to configure UI language independent of page content language
At a multi-language company, many users with different personal language preferences may be working with many different pages in different languages (e.g. updating code examples).
wiki.js should display the UI elements (navigation/controls) to a user based on http
Accept-Languageif the requested language is installed (otherwise site default language).
A user with a login/account should be able to override their
Accept-Languagelanguage preference in their user profile settings to one of the installed languages. Not all users know how to get their browser to change
Accept-Languageheader...and they shouldn't need to. For instance a user who has personal language preference (browser
eson a wiki that has only installed
enwith a default
decan go into their user preferences and select
enas their preferred UI display language.
A user with language
en-USshould be able to edit a
de-DEpage on the wiki without the UI controls changing to German...ie edit German language page with English UI controls (or vice versa).
The implication here is that user language for UI internationalization purposes needs to be treated/handled separately from the page content language paradigm.
I understand we want to be able to set
<html lang="XX">when rendering the pages...however
langcan be set differently on the content editor/viewer container than it is on the root
bodytag. So I don't think this should be a problem.
I felt like I already posted about this somewhere but couldn't find it on canny or github...so I don't know. But it comes up often with our users.