summaryrefslogtreecommitdiffstats
path: root/app/HVAC.qml
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2017-12-29 23:08:42 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-01-04 17:32:20 +0000
commitdd747fa9dfc009da9113e310d9b40f6280e7a57a (patch)
tree45a1f583a115ec44fbe6262b9d639f6af3353980 /app/HVAC.qml
parent705509400742a757f2abe9399711197a37a07e74 (diff)
Change-Id: I12130b4a1c5c6dad9658972d32b4b9e362a8d1cc Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'app/HVAC.qml')
-rw-r--r--app/HVAC.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/HVAC.qml b/app/HVAC.qml
index 7710589..b1925dd 100644
--- a/app/HVAC.qml
+++ b/app/HVAC.qml
@@ -26,13 +26,14 @@ ApplicationWindow {
Translator {
id: translator
- language: 'en_US'
+ language: binding.language
}
API.Binding {
id: binding
url: bindingAddress
onFanSpeedChanged: fanSpeedSlider.value = fanSpeed
+ onLanguageChanged: translator.language = language
}
ColumnLayout {