How to change the language in Facebook-Account-Kit for iOS?
Facebook said that: Localization support is also provided by the SDK. The supported languages are packaged with the SDK. You don't need anything else to display text in the appropriate locale.
But it's not enough, you must add your language in Project Info like image below
I just change the simulator/device language. The display language on AccountKIT UI will be changed automatically . It worked for me
I also don't need to add localization config as "Thành Ngô Văn" answer
I had changed the device language. Now working fine.
Related
I am using MSDKUI to display UI elements with navigation. I can't find the way to change the default language to the phones local language.
The HERE Mobile SDK UI Kit for iOS should have already support for 14+ languages. Please check the documentation to verify what languages are available.
Within Xcode you have to add the desired languages you want to support. If the language is not yet supported, then the device will fallback to English.
For example, Xcode 9 and Xcode 10 already support base internationalization. Verify that the checkbox is marked:
Select your project in Xcode's file navigator. Make sure the project and not the target is selected. You should see the checkbox labelled 'Use Base Internationalization'. If it is not selected, please select it.
With the +/- buttons above you can add or remove supported languages for your app. Make sure the selected language will match the ones from the HERE Mobile SDK UI Kit.
Set a language on the device via phone settings. Restart your app: The components should be localized now.
Note that this procedure does not contain any HERE specific steps. It's just the standard way on iOS how to add localization to your app. Once the app is properly localized the HERE Mobile SDK UI Kit will recognize the language and display the current language, if available.
There is an option in my app that will enable the user to change the language of the app which can be different from the system's language.
The app has to be localised according to that language instead of the device's language.
I have found couple of solutions like this one but I couldn't find a solution that will work for storyboards an base localisation.
How to achieve this?
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.
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
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.
It seams base localization does not work on iOS7?
I have an app (its available on the app store) that has localisations for Dutch, Chinese and a base localization = English. This looks like this in xcode 6:
The plist file contains the "Localization native development region" key:
Problem:
When the app runs on on iPhone iOS7 configured for English, it
uses the Dutch localization ?! I would expect that iOS uses the base
localization since its configured as English?
I do not have a "development language" entry in the Localizations
section of Xcode, I have seen this in some posts, what is the meaning of this "development language"? And could this be a possible cause or something?
I can solve the problem by adding an localization language "English" (which then seams to become the development language, I have tested this) but this would simply be a duplicate of my "base" language. Surely this is not the way to go?
I know there are many topics on localizations already but I have read them all (I believe) and cannot find a clear answer.
1.Localization native development language states the preferred language to be use if the iOS language and your app languages doesn't match, so I'm thinking about a storyboard that has been localized in english and a strings file in english, to make your app use english language.
2.Development language is not the same of the first point, is the base language, by default is set to english and it doesn't seems to exist a clear way to change that (I've filed a radar to Apple about it asking for xcode to show a menu at the beginning of each project). To change it you need to do it manually, but appstore will always show english as language
3.This is the solution, when iOS doesn't find a suitable localization it iterates through an array of laguages until it finds an existing one, if you add an english localization you could solve the problem.
Appstore reads directories in your app bundle
"Application has localized display name" = YES in Info.plist
Localized CFBundleDisplayName & CFBundleName in InfoPlist.strings
When I change the language of the whole device, it works. It changes the name of my app.
When I install it, the name is in the language of the device.
I manually change the app language from inside the app with NSUserDefaults language setting. Everything inside the app is perfectly localized whenever I change the language from inside the app. (Needs a restart of app)
But the app name does not change this way, the only way for it to change is, changing the device language.
Am I missing something? Is there a way to change the app name when the language is changed?
Unfortunately, I don't think you can.
iOS has no way to tell what language preference is set inside each application (well, it could, but it's not done that way).
Instead, it uses the system-wide setting to find and display the appropriate CFBundleDisplayName for every application.
Developing a custom language preference inside an app is also not the recommended way. Apple expects users to set their language of choice in the device's Preferences, not from inside individual apps (see here: https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPInternational/Articles/InternatSupport.html#//apple_ref/doc/uid/20000278-SW1). As an example, there's no way to change Facebook's language from inside the app, but as soon as you change the device's global language setting, the Facebook app reflects the change.