Language Fallbacks


A simple rule applies to both OS X and iOS apps: if localized resources aren’t present for a user’s locale, the native development region will be used.

This can be set in your app’s Info.plist:

language fallbacks

 

 

Regional Dialects

You may have noticed that iOS and Mac OS allow regional dialect subsets of certain languages. For example, you app may be localized in Spanish and Argentinian Spanish. Your set up would look something like this:

es.lproj

es_AR.lproj

The first resource folder is what you define as Spanish. Let’s say European Spanish. The second folder (es_AR) is where you keep your Argentinian Spanish localization.

If you are in Spain and open the app, you get the es.lproj Spanish. If you are in Argentina, you get the Argentinian Spanish. What if you are in Chile?

We haven’t defined a es_CL.lproj folder, so the app will launch in the dialect’s parent language, in this case, es.lproj.

If you don’t have an es.lproj folder however, but only an es_ES.lproj and an es_AR.lproj folder, then Chilean users will get the app’s native development language, usually English (see above).


We’d really appreciate it if you could rate this post to let us know how useful you found it! :) Thanks!

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)

Was this article helpful to you?

Rob

CEO & Founder of Applingua.com

Leave a Reply