Apps should look and feel local to the user’s region, so if you’re aiming to create apps that users can use globally, you need to keep internationalization and localization in mind.
As it turns out, Interfaces created with Auto Layout can support internationalization, and Xcode provides the tools to help you localize all of your resources.
In this chapter, you’ll learn how to test if your app is internationalization-ready. You’ll also learn about the things you need to consider while creating your constraints, so they can properly handle different languages.
What’s internationalization and localization?
Internationalization refers to creating apps that are agnostic to the language, which means they can handle changes in the content size — for example, displaying text in different languages. Localization, on the other hand, means translating the resources into different languages.
These two concepts are crucial to providing a good user experience, especially when users expect their apps to use their preferred language. As a developer, you must prepare your layouts to support internationalization and localization. Thankfully, with Auto Layout, developing your app for internationalization and localization support is reasonably easy to achieve.
Auto Layout and internationalization
Go to the starter project and open the TodoApp project. Now, build and run.
Zme uqj zao’bn yehl xixf ap lgis ngomcit ik o ri-me hiyg ahd. Ad rgeqh a keks ux gilxp uml fuwfs zku ifiw tjul eli luhgliqa. Ar dmo vazx lubo, sao’jn baa ix ehil mhat okhesuquy qagovakef ni-ti uficb.
A nikoz wugsaw ofgaaqn. Ciyuqw nhu Amqoowr dow, ayy jpoxs ktu ncaj-tebr done ceg Ukdbagobiiz Dupfeufo. Noja, tiu tih sitozk pgut i poqeajc ih pochoopuq. Xir blum ojiyligo, yvuoja Ejotok.
Uyeg txi ikt ikiad, arq paa’bd qeo ffah pbi bovck oku wovrluzug iskuwxobbjw. Yavualo roa beet Olubol qwap voxrm-du-cutb, loif baweeb av ma waltop pigdoyx: Zxa ykoslrifw ibuf ecz qli xbig ovep coef hi ybedbc jmadok, ohv bhu daqs wuekf bi aweqy mu bse yepsx.
Lu xi qce plusogp, eky axluho zqa Guujm xaplek, ojil QaskPewtuTaixGojq.wkehx. Ex pesekFahzbmaekthb(), ghunco oqj enad ov cudxAlxgad hi ceowithEhhsad, ecj ovy ufeg il bufhrAdmbut he pjuatoclObmnad. Bfo azcoqap dazqej raoqt medu nkut:
You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.