mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-09 13:39:42 -05:00
noVNC language is now sync'ed with MeshCentral.
This commit is contained in:
@@ -20,9 +20,11 @@ export class Localizer {
|
||||
}
|
||||
|
||||
// Configure suitable language based on user preferences
|
||||
setup(supportedLanguages) {
|
||||
setup(supportedLanguages, language) {
|
||||
this.language = 'en'; // Default: US English
|
||||
|
||||
if (language != null) { this.language = language; return; }
|
||||
|
||||
/*
|
||||
* Navigator.languages only available in Chrome (32+) and FireFox (32+)
|
||||
* Fall back to navigator.language for other browsers
|
||||
|
||||
Reference in New Issue
Block a user