Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localization IOS default Language

I have build an iphone app and I started with Dutch texts in the app. I would like to expand it to other countries so I Localized the app and added English.

So I have now to localization folders en.lproj and nl.lproj.

When I install the app on the iphone and set the language to Dutch I get the Dutch language in the App. When I switch to English I get this. But when I switch to German I get the Dutch language. I would like to have default the English language when the is no localization folder for it.

How do I do this?

like image 564
user3215523 Avatar asked Jan 20 '14 14:01

user3215523


People also ask

What language is used for iOS apps?

There Are Two Main Languages That Power iOS: Objective-C and Swift. You can use other languages to code iOS apps, but they may require significant workarounds that require more effort than needed.

What is iOS localization?

Overview. Localization is the process of translating and adapting your app into multiple languages and regions. Localize your app to provide access for users who speak a variety of languages, and who download from different App Store territories.

How do I change the default language in iOS apps?

In the Apple Settings app, open the settings of the specific app, and select the language under "Preferred Language". You can select from the languages that the app supports.


2 Answers

A little late to the party, but just recently run into this issue and somebody helped me, so here is the magic:

Suppose your app supports English and Spanish.

If the list of languages in the Settings app is Portuguese, Spanish, English then Spanish will be shown to the user. If the list has been Portuguese, English, Spanish then English would be shown to the user.

In short, the language are loaded in order, so if you want English to be loaded when German (or any other missing language) is set, your settings screen should read:

German | English | Dutch | everything else

But you don't know how your users has the languages set and English might be at the bottom. So far, the best solution workaround I found was to manually change the Locale order on startup so English is always second, and therefore, default.

like image 158
Andres C Avatar answered Sep 19 '22 19:09

Andres C


In your Info.plist you have to set the Localization native development region to English (en) and it should work fine.

like image 21
adhumi Avatar answered Sep 22 '22 19:09

adhumi