8000 Fixed settings.GetLocale() · arduino/arduino-cli@317b3de · GitHub
[go: up one dir, main page]

Skip to content

Commit 317b3de

Browse files
committed
Fixed settings.GetLocale()
1 parent 9d9afb8 commit 317b3de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/cli/configuration/locale.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
package configuration
1717

1818
func (s *Settings) Locale() string {
19+
if locale, ok, err := s.GetStringOk("locale"); ok && err == nil {
20+
return locale
21+
}
1922
return s.Defaults.GetString("locale")
2023
}

0 commit comments

Comments
 (0)
0