Skip to content

Commit

Permalink
Give LANG env var priority (windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Nov 6, 2024
1 parent a6e3276 commit 01e72e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/i18n/detect_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func getLocaleIdentifier() string {
}
}()

if loc := getLocaleIdentifierFromEnv(); loc != "" {
return loc
}

dll := syscall.MustLoadDLL("kernel32")
defer dll.Release()
proc := dll.MustFindProc("GetUserDefaultLocaleName")
Expand Down

0 comments on commit 01e72e3

Please sign in to comment.