summaryrefslogtreecommitdiffstats
path: root/app/HVAC.qml
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2017-12-30 16:04:18 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-01-04 14:20:51 +0000
commitbdc6eaee726a91301153c5e67b55f9324cacae85 (patch)
treeed6923eb414fecccd84576faa11f5e0973b900e7 /app/HVAC.qml
parent4b7d58e71e8864a90d3b567f21029968d6e8edef (diff)
Languages changing depending on identity logged in
Change-Id: I8eca6e0f7ddd042c9434132537eeccd74b982718 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> update translation on language changed 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 c375f2f..b1925dd 100644
--- a/app/HVAC.qml
+++ b/app/HVAC.qml
@@ -26,13 +26,14 @@ ApplicationWindow {
Translator {
id: translator
-// language: 'ja_JP'
+ language: binding.language
}
API.Binding {
id: binding
url: bindingAddress
onFanSpeedChanged: fanSpeedSlider.value = fanSpeed
+ onLanguageChanged: translator.language = language
}
ColumnLayout {