iOS app Localisation

We all know App Store provide a robust global distribution, any iOS dev can release their app across the globe with a single click. If you want to go bigger just releasing an app with an excellent UI is not sufficient. Focusing on Internalisation and Localisation is equally important, as not all Apple users understand English. If you are releasing your app in just English, your app may be ignored by non-English speaking users. Here are five simple steps for quickly localise your iOS app.

Step I- Internationalise your app

Before localization, it is imperative to Internationalise your app. Developers need to make some modifications to existing code by utilising the system provided APIs so that it look good in all languages.

For this, you need to click on your project folder select your Project, under the Info tab, you will see a section for Localizations. Enable ‘Use base internationalisation Xcode’ modifies your project folder structure.

Step II- Separate strings from code

Instead of using hard code strings, to localise Developers need to put them in the separate file with”.strings” extension. You just need to provide the reference to these Strings files. Xcode uses these “.strings” files to store and retrieves the Strings used in the app to supported each language. A simple method calls in your code will lookup and returns the requested string as per the morphology of the iOS device.

Sample .strings file
/* Header content title Hello World*/
“Hello World”=”Hello World”

Name your file Localizable.strings as its the default filename iOS uses for localised text.

Step III- Add support for another language

Under Project info>localisations, Click the + and choose the language in which you want to localise your app, let’s select Chinese. It will create language specific versions of your project. You now have two versions of .strings file: one for English and the other in Chinese.

Step IV- Translate

You can now send the content to your translators or Translate the strings yourselves. If you are using Localised content, we status track the translation and provide string by string rendered content which is easy to replace in your localised .string file.

Step V- Update the content

To change the text of the other language file, select Localizable.strings (Chinese) and replace its contents of the variables with your translated content.

“Hello World”=”你好,世界”

Congratulations! Your app ready for realising in Chinese