From c8bf0ee062a9be0033da18ff87eee62bef03ada5 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 e5166d102b6..dac6721fb4a 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -2224,7 +2224,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]; }