diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-11-25 15:55:17 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-11-25 15:55:17 +0200 |
commit | c8bf0ee062a9be0033da18ff87eee62bef03ada5 (patch) | |
tree | 78b503014256c41bcdb4bf7ff5f3074dad4d5b14 /platform/osx | |
parent | b7ea22c5d203da1b592a743a4c893de25cd34408 (diff) |
[macOS] Fix locale detection.
Diffstat (limited to 'platform/osx')
-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]; } |