mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
[macOS] Fix locale detection.
This commit is contained in:
@@ -1430,7 +1430,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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user