diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-25 16:09:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 16:09:12 +0100 |
commit | e297b83b8e7c335c4ccf96b7bacd42f3cc7e52c8 (patch) | |
tree | 0276e9461250df0cb1ae806be6ecdb3cb423c594 | |
parent | 5d7c13dcbbfa9cc1b046c1031f08b3e65249cdd8 (diff) | |
parent | c8bf0ee062a9be0033da18ff87eee62bef03ada5 (diff) |
Merge pull request #33883 from bruvzg/mac_locale
[macOS] Fix locale detection.
-rw-r--r-- | platform/osx/os_osx.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index e5166d102b..dac6721fb4 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]; } |