locales: add to url-options docs, force lowercase

This commit is contained in:
jean-emmanuel 2018-08-27 15:04:15 +02:00
parent 76b6a36d44
commit 448929cb40
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ Client specific options can be set by adding query parameters to the server's ur
| doubletab | number | 375 | sets the double tap/click time thershold in milliseconds |
| zoom | number | 1 | sets the initial zoom |
| framerate | number | 60 | limit canvas drawing framerate |
| lang | string | *system_default* | use a different language than the default if available (2-letters code such as "en") |
Example:

View file

@ -5,7 +5,7 @@ location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, (s,k,v)=>{
window.ELECTRON_FULLSCREEN = window.ELECTRON_FULLSCREEN || false
window.LANG = ARGV.lang || (()=>{ try { return navigator.language } catch (e) {} })() || 'en'
window.LANG = (ARGV.lang || (()=>{ try { return navigator.language } catch (e) {} })() || 'en').toLowerCase()
window.PACKAGE = require('../../../../app/package.json')
document.title = PACKAGE.productName + ' v' + PACKAGE.version