chore: clean up translation function

This commit is contained in:
Jonathan Rainville 2020-07-20 10:29:36 -04:00 committed by Iuri Matias
parent 5268484114
commit 9612f890b4
2 changed files with 2 additions and 3 deletions

View File

@ -56,8 +56,7 @@ proc mainProc() =
engine.setRootContextProperty("nodeModel", node.variant)
proc changeLanguage(locale: string) =
echo "CHanging to " & locale
engine.setTranslationPackage(fmt"/home/jonathan/dev/nim-status-client/ui/i18n/qml_{locale}.qm")
engine.setTranslationPackage(fmt"ui/i18n/qml_{locale}.qm")
var profile = profile.newController(status, changeLanguage)
engine.setRootContextProperty("profileModel", profile.variant)

2
vendor/nim-status vendored

@ -1 +1 @@
Subproject commit 4cb06e85d7b4a4956cd299fd4c45c2ce253de085
Subproject commit 677a000c243fcc16244a6107422a8f1aa83acaeb