Implement localization

This commit is contained in:
2025-01-12 00:17:19 +01:00
parent 2788afe822
commit d43e961184
16 changed files with 621 additions and 31 deletions

View File

@@ -36,6 +36,7 @@ var addonService *AddonService
type Settings struct {
GamePath string `json:"gamePath"`
Addons map[string]Addon `json:"addons"`
Locale string `json:"locale"`
}
func SaveSettings(settings Settings) error {
@@ -81,8 +82,8 @@ func main() {
err = wails.Run(&options.App{
Title: "wails-template",
Width: 700,
Height: 700,
Width: 800,
Height: 600,
AssetServer: &assetserver.Options{
Assets: assets,
},