Added default user language to viewer_settings.js

The default user language determined from the value of "Accept-Language"
header is communicated to the client via the /viewer_settings.js
endpoint.
This commit is contained in:
Veloman Yunkan
2023-09-09 19:11:12 +04:00
parent b5b98e7a61
commit f8c3a1fd2e
3 changed files with 51 additions and 6 deletions

View File

@ -1,5 +1,6 @@
const viewerSettings = {
toolbarEnabled: {{enable_toolbar}},
linkBlockingEnabled: {{enable_link_blocking}},
libraryButtonEnabled: {{enable_library_button}}
libraryButtonEnabled: {{enable_library_button}},
defaultUserLanguage: "{{default_user_language}}"
}