diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-29 19:43:49 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-01-04 14:19:23 +0000 |
commit | 705509400742a757f2abe9399711197a37a07e74 (patch) | |
tree | 2a9b01ed8f26d59d7ea9cefe5046fc6743e0421a /app/api | |
parent | 8363df0356c20c92f6dae175b3c8b83b1032e6ff (diff) |
Languages changing depending on identity logged in
Change-Id: I8eca6e0f7ddd042c9434132537eeccd74b982718
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'app/api')
-rw-r--r-- | app/api/Binding.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/api/Binding.qml b/app/api/Binding.qml index 93da6f4..673cfdd 100644 --- a/app/api/Binding.qml +++ b/app/api/Binding.qml @@ -62,6 +62,10 @@ WebSocket { root.statusString = "Bad return value, binding probably not installed" break case MessageId.event: + if (json[1] == "hvac/language") + console.log("HVAC event received: ",json[2]) + ApplicationWindow.root.translator.language = json[2].data + root.statusString = "Language changed to "+language break } } |