Skip to content

Commit

Permalink
Merge pull request #127 from ath0mas/ios-app-name-localized
Browse files Browse the repository at this point in the history
iOS: getAppName to return localized value (like Android)
  • Loading branch information
sampart authored Feb 24, 2022
2 parents 5539b78 + 7796601 commit fc37d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/AppVersion.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ @implementation AppVersion
- (void)getAppName : (CDVInvokedUrlCommand *)command
{
NSString * callbackId = command.callbackId;
NSString * version =[[[NSBundle mainBundle]infoDictionary]objectForKey :@"CFBundleDisplayName"];
NSString * version =[[[NSBundle mainBundle] localizedInfoDictionary] objectForKey:@"CFBundleDisplayName"];
CDVPluginResult * pluginResult =[CDVPluginResult resultWithStatus : CDVCommandStatus_OK messageAsString : version];
[self.commandDelegate sendPluginResult : pluginResult callbackId : callbackId];
}
Expand Down

0 comments on commit fc37d5d

Please sign in to comment.