From 45f4300eddd9871c06a0961457cc5537b5af7262 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 25 Nov 2019 15:55:17 +0200 Subject: [PATCH] [macOS] Fix locale detection. --- platform/osx/os_osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index e990ffa2118..e1a85ad8105 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1430,7 +1430,7 @@ Error OS_OSX::shell_open(String p_uri) { } String OS_OSX::get_locale() const { - NSString *locale_code = [[NSLocale currentLocale] localeIdentifier]; + NSString *locale_code = [[NSLocale preferredLanguages] objectAtIndex:0]; return [locale_code UTF8String]; }