summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorDwarven YANG <prison.yang@gmail.com>2021-08-27 15:00:53 +0800
committerJesse Duffield <jessedduffield@gmail.com>2021-08-30 09:12:29 +1000
commit63072af5bc4f93207b4ff1f49c45772a828fa13f (patch)
tree5a519f346585a0f2fb3095e31fe2d20253da5629 /pkg/config
parent44d08edfb02686c3dd22429356a9e4b327191f91 (diff)
allow user to configure the gui language
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go2
1 files changed, 2 insertions, 0 deletions
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"},