chore: clean up translation function
This commit is contained in:
parent
5268484114
commit
9612f890b4
|
@ -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)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 4cb06e85d7b4a4956cd299fd4c45c2ce253de085
|
||||
Subproject commit 677a000c243fcc16244a6107422a8f1aa83acaeb
|
Loading…
Reference in New Issue