Muhammad Irfan
Muhammad Irfan

Reputation: 280

Can I show localized Drop In UI using Braintree iOS SDK

I have integrated Braintree Drop-In UI in my app and every thing is working perfectly :) I just want to know that can I show localized UI? Is it supported in current version of iOS SDK? For example if current locale is french.. i can set it by doing some thing like [self.braintree setLocale:@"fr"] etc.

I have searched several Braintree forums and haven't got any answer regarding this.

Upvotes: 6

Views: 1042

Answers (2)

Richard Shin
Richard Shin

Reputation: 663

If you're integrating via Cocoapods, then the localizations are automatically available to you when you switch the device language.

However, if you're doing a manual integration (i.e. dragging and dropping the raw Braintree SDK files into your project), you will need to create a resource bundle named Braintree-Drop-In-Localization, add the localized .strings files for the desired languages, and add that resource bundle to the app.

Upvotes: 0

pp_pduan
pp_pduan

Reputation: 3402

On an iOS integration, yes it's supported. Currently, the Drop-in option is available in 18 languages on iOS and Android, but only in English (US) on the web.

Here's the SDK details on iOS localization bundles

Upvotes: 4

Related Questions