diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index 3578d98..f117aed 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -144,8 +144,8 @@ static MopPlugin *_instance; } else if ([@"updateLanguage" isEqualToString:call.method]) { NSLog(@"updateLanguage"); - NSString cCode = call.arguments[@"countryCode"]]; - NSString cLang = call.arguments[@"languageCode"]]; + NSString cCode = call.arguments[@"countryCode"]; + NSString cLang = call.arguments[@"languageCode"]; [PhizLanguageData sharedInstance].countryCode = cCode; [PhizLanguageData sharedInstance].languageCode = cLang; }