mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
[macOS] Fix locale detection.
This commit is contained in:
parent
457dc5056d
commit
45f4300edd
1 changed files with 1 additions and 1 deletions
|
|
@ -1430,7 +1430,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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue