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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy