Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 01e72e3

Browse files
committedNov 6, 2024·
Give LANG env var priority (windows)
1 parent a6e3276 commit 01e72e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎internal/i18n/detect_windows.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ func getLocaleIdentifier() string {
3030
}
3131
}()
3232

33+
if loc := getLocaleIdentifierFromEnv(); loc != "" {
34+
return loc
35+
}
36+
3337
dll := syscall.MustLoadDLL("kernel32")
3438
defer dll.Release()
3539
proc := dll.MustFindProc("GetUserDefaultLocaleName")

0 commit comments

Comments
 (0)
Please sign in to comment.