generated from dave/wails-template
Implement localization
This commit is contained in:
5
main.go
5
main.go
@@ -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,
|
||||
},
|
||||
|
Reference in New Issue
Block a user