Skip to content

Commit

Permalink
Fixed settings.GetLocale()
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Nov 6, 2024
1 parent 6bf0ca9 commit 199cb57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cli/configuration/locale.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
package configuration

func (s *Settings) Locale() string {
if locale, ok, err := s.GetStringOk("locale"); ok && err == nil {
return locale
}
return s.Defaults.GetString("locale")
}

0 comments on commit 199cb57

Please sign in to comment.