[macOS] Fix locale detection.

This commit is contained in:
bruvzg 2019-11-25 15:55:17 +02:00
parent b7ea22c5d2
commit c8bf0ee062
No known key found for this signature in database
GPG Key ID: 89DD917D9CE4218D
1 changed files with 1 additions and 1 deletions

View File

@ -2224,7 +2224,7 @@ Error OS_OSX::shell_open(String p_uri) {
} }
String OS_OSX::get_locale() const { String OS_OSX::get_locale() const {
NSString *locale_code = [[NSLocale currentLocale] localeIdentifier]; NSString *locale_code = [[NSLocale preferredLanguages] objectAtIndex:0];
return [locale_code UTF8String]; return [locale_code UTF8String];
} }