File arduino-cli-respect-LC_MESSAGES.patch of Package arduino-cli

diff --git a/internal/locales/detect.go b/internal/locales/detect.go
index 36279f13..db827a1a 100644
--- a/internal/locales/detect.go
+++ b/internal/locales/detect.go
@@ -25,7 +25,11 @@ func getLocaleIdentifierFromOS() string {
 }
 
 func getLocaleIdentifierFromEnv() string {
-	locale := os.Getenv("LC_ALL")
+	locale := os.Getenv("LC_MESSAGES")
+
+	if locale == "" {
+		locale = os.Getenv("LC_ALL")
+	}
 
 	if locale == "" {
 		locale = os.Getenv("LANG")
openSUSE Build Service is sponsored by