From 63072af5bc4f93207b4ff1f49c45772a828fa13f Mon Sep 17 00:00:00 2001 From: Dwarven YANG Date: Fri, 27 Aug 2021 15:00:53 +0800 Subject: allow user to configure the gui language --- pkg/config/user_config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/config') diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 9d61cb68f..7b5145a47 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -32,6 +32,7 @@ type GuiConfig struct { SidePanelWidth float64 `yaml:"sidePanelWidth"` ExpandFocusedSidePanel bool `yaml:"expandFocusedSidePanel"` MainPanelSplitMode string `yaml:"mainPanelSplitMode"` + Language string `yaml:"language"` Theme ThemeConfig `yaml:"theme"` CommitLength CommitLengthConfig `yaml:"commitLength"` SkipNoStagedFilesWarning bool `yaml:"skipNoStagedFilesWarning"` @@ -310,6 +311,7 @@ func GetDefaultConfig() *UserConfig { SidePanelWidth: 0.3333, ExpandFocusedSidePanel: false, MainPanelSplitMode: "flexible", + Language: "auto", Theme: ThemeConfig{ LightTheme: false, ActiveBorderColor: []string{"green", "bold"}, -- cgit v1.2.3