10000 Fixed locales (translations) not being detected with default config by cmaglie · Pull Request #2724 · arduino/arduino-cli · GitHub
[go: up one dir, main page]

Skip to content

Fixed locales (translations) not being detected with default config #2724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed settings.GetLocale()
  • Loading branch information
cmaglie committed Nov 6, 2024
commit 317b3de27c30e6be36e482f0e71881bdd06cb3c0
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