Merge pull request #33883 from bruvzg/mac_locale

[macOS] Fix locale detection.
This commit is contained in:
Rémi Verschelde 2019-11-25 16:09:12 +01:00 committed by GitHub
commit e297b83b8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];
}