[macOS] Fix locale detection.

(cherry picked from commit c8bf0ee062)
This commit is contained in:
bruvzg 2019-11-25 15:55:17 +02:00 committed by Rémi Verschelde
parent 577b6d1196
commit 56f5502402

View file

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