Skip to content

Commit 3f5568f

Browse files
committed
Give LANG env var priority (windows)
1 parent abb819e commit 3f5568f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: internal/i18n/detect_windows.go

+4
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)