iOS - After changing the language does not apply default - ios

I have two languages in my app, English - default and Swedish. When it is Swedish and I switch to the another (Ukrainian, Spanish) should go to the default - English, but still Swedish.

I found answers, first of all, your device looks at preferred language order and then at default language in a project.

Related

Localization in Swift, Base, German, English, what's the correct way to do it?

I have a project which is nearly completed.
The language I used in Storyboard and in code is German. I use Base localization (which is German because the Strings in Storyboard and Code are German). The App is also localized in English.
Basically I want that every non-German user can use my App in English but I also want to use German language in Storyboard and code.
For that, I set the Base localization to English (I set the language to "EN" in project.pbxproj, and I set the language to "United States" in the Plist file).
What I want is working but I think this is not the correct way to do it because in my current configuration Xcode thinks that my Base is English (because I set it to English) but in fact it's German.
If I would set the Plist file and the project.pbxproj file back to DE users which are not German and not English would have to use my App in German. Or am I wrong?
What's the correct way to achieve that German users can use my App in German and all others should see the English version.
I think you should set the base language to English, add German for additional languages, so the APP for any users uses German on the phone will display German. Otherwise, the APP for all users who do not use German will display the base language, which is English. I hope this will help you.
Check this to set up the development language on XCode.

Default language not working in iOS app

I have such problem:
I have localized my app for two languages - English and Polish, with English being set as the Base one.
I set developmentRegion to "en" (also tried "English") in both info.plist and project.pbxproj files.
My translated texts are contained within localized Main.strings and Localizable.strings files.
So everything should be fine, yet when I set any language other than Polish or English the app does not fall back to the Base (English) one, instead stays on the last used, supported language. (i.e. Polish if I recently changed from Polish to lets say French).
Can anyone help me ?
Ok I see now. I thought that whatever unsupported language I would set in system settings, my app would always revert to English (Base).
That's not true.
When selected language is not supported then the app is taking the language that is the highest on "Preferred languages" list in system settings. Only if none of these preferred languages is supported, then the base one is selected.

Set English as default language in Localization iOS, Swift

getting issue here:
How to set English as default language for non-implemented languages in MultiLingual app. If changing language to e.g. Hrvatski or Polish which are not implemented the App does not use English as default language but seems to remember the last language used like(Dutch) in my case it continues to use Dutch…
How to set back to English is app does not support to Phone selected Language.

Xcode using wrong localization

I have two localizations in my project: Base (which is in English) and Swedish. When I set my phone to Swedish it works, and when I set it to English it works. But when I set it to another language, for example German, it uses the Swedish translations instead of Base. Any ideas why?
I found the answer. In the phones settings, you don't just set the current language, you set language priorities. So if you've had Swedish and switches to another language, Swedish will be second priority and English lower.
Go to your target and then to the Info tab. Under "Custom iOS Target Properties" you will find an entry with the name "Localization native development region". This entry determines which is the default language, the one displayed in case that there in no localization resource for the selected language. Make sure that the entry is set to "en".

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?
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.
In your Info.plist you have to set the Localization native development region to English (en) and it should work fine.

Resources