Skip to content

Commit

Permalink
Merge fix for Platform::getLanguage on older MacOS versions #1237
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Mar 1, 2023
2 parents adb1c4e + ba13d16 commit 0ddd71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Platform/PlatformMac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Dimensions getWindowDimensions(){
}

std::string getLanguage(){
return NSLocale.currentLocale.languageCode.UTF8String;
return [[NSLocale.currentLocale objectForKey:NSLocaleLanguageCode] UTF8String];
}

bool openWebsite(const std::string& url){
Expand Down

0 comments on commit 0ddd71a

Please sign in to comment.