-
Notifications
You must be signed in to change notification settings - Fork 369
It doesn't support Simplified and Traditional (iOS 9.0 or above) #449
Comments
Thanks for reporting the issue. Release 2.14.6 should resolve the bug. |
@bluk PayPal iOS SDK 2.14.6 not resolve the bug. |
Can you please confirm if you've localized your app in the Project settings? Click on the Xcode project in the file navigation browser, Select your project and on the Info tab, you should have something like: Furthermore, is the iOS simulator or phone set to use Chinese as its preferred language? In the Settings > General > Language & Region > iPhone Language. |
@bluk My phone set to use Chinese as its preferred language. |
@bluk If your app use Chinese as its preferred language (iOS 9.0 or above), so Targets > Info something like: |
@youngshingjun Please see if 2.14.7 resolves your issue. Thanks. |
@youngshingjun Great! |
PayPal SDK It doesn't support Simplified Chinese and Traditional Chinese (iOS 9.0 or above).
//Sample Code
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
NSArray* languages = [defaults objectForKey:@"AppleLanguages"];
NSString* language = [languages objectAtIndex:0];
if ([language hasPrefix:@"zh-Hans"]) {
// Language is Simplified Chinese.
}
if ([language hasPrefix:@"zh-Hant"] ||
[language hasPrefix:@"zh-HK"] ||
[language hasPrefix:@"zh-MO"] ||
[language hasPrefix:@"zh-TW"] ||
[language hasPrefix:@"zh-SG"] ) {
// Language is Traditional Chinese.
}
The text was updated successfully, but these errors were encountered: