From d8d32ebf9f9f85a44a64a9ff695d4adca33c1fff Mon Sep 17 00:00:00 2001 From: shallowmallow Date: Sat, 31 Aug 2024 16:00:21 +0200 Subject: [PATCH] On firefox && chrome, no htmlTag.lang will be empty string and not null --- haxe/ui/backend/PlatformImpl.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haxe/ui/backend/PlatformImpl.hx b/haxe/ui/backend/PlatformImpl.hx index b565800..af49d5c 100644 --- a/haxe/ui/backend/PlatformImpl.hx +++ b/haxe/ui/backend/PlatformImpl.hx @@ -25,7 +25,7 @@ class PlatformImpl extends PlatformBase { systemLocale = htmlTag.lang; } - if (systemLocale == null) { + if (systemLocale == null || systemLocale == "" ) { systemLocale = Browser.navigator.language; } return systemLocale;