1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

noVNC language is now sync'ed with MeshCentral.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-01 12:51:05 -07:00
parent 69952904eb
commit 0b7fb139c4
4 changed files with 8 additions and 5 deletions

View file

@ -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