embed and load translations into the app

This commit is contained in:
Drew Weymouth
2024-07-21 11:13:39 -07:00
parent d48337c83b
commit 67feea427f
4 changed files with 11 additions and 3 deletions
+2
View File
@@ -14,6 +14,7 @@ import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/lang"
)
func main() {
@@ -43,6 +44,7 @@ func main() {
os.Setenv("FYNE_SCALE", "1.1")
}
lang.AddTranslationsFS(res.Translations, "translations")
fyneApp := app.New()
fyneApp.SetIcon(res.ResAppicon256Png)