diff --git a/internal/i18n/detect_windows.go b/internal/i18n/detect_windows.go index a43e72c7cb5..84bc3af7997 100644 --- a/internal/i18n/detect_windows.go +++ b/internal/i18n/detect_windows.go @@ -30,6 +30,10 @@ func getLocaleIdentifier() string { } }() + if loc := getLocaleIdentifierFromEnv(); loc != "" { + return loc + } + dll := syscall.MustLoadDLL("kernel32") defer dll.Release() proc := dll.MustFindProc("GetUserDefaultLocaleName")