
#FLEXIBLE SEARCH LOCALIZED CODE#
You should use two strings in code in this case. Even though the English words are the same, when they appear in different contexts, other languages might use different words. Other languages like Spanish, however, have different words for the action and the folder name. Notice how both words are "Archive" in English. If I open the context menu of an email, I can move it to a special folder called "Archive.” It is located in my sidebar. And while we're there, I want to show you something.
#FLEXIBLE SEARCH LOCALIZED MAC#
I will use the Mail app on my Mac to do so. Xcode discovers it when exporting for localization, and we can send the result over our translators. To support them properly, all we have to do is declare the string using String(localized). And this is what it looks like in other languages. This view here says "Wind is making it feel cooler" in English. Let's take a closer look at one of the things we customize by starting with translation. The UI is also adapted appropriately depending on whether the language is left-to-right or right-to-left. We localize descriptions of the current weather conditions and we format numbers. Notice how everything in the UI is adjusted to their preferences. Millions of users open it up every day to check the forecast– and this is what the app looks like to them, wherever they are in the world. And the Weather app is one example of this. At Apple, we make sure that our apps are providing a great experience to our international audience. Finally, I will talk about layout and great new additions to SwiftUI. Your Swift Package might include localized text, too, and you will learn about improvements to the localization workflow. I will highlight some options, and we will take a look at a sophisticated example. It's easy to include formatted dates, times, and more in our strings. I will start with declaring and loading localized text. In this talk, you will learn from our experience making Apple's apps appealing to a diverse audience, including some challenges and how we solved them.

Using the APIs that Apple offers, most parts of your app are internationalization friendly right out of the box. When localization is done well, everybody gets to enjoy the same great experience and utility– regardless of the language they speak. Internationalization means preparing your app to run on devices all across the world.
#FLEXIBLE SEARCH LOCALIZED HOW TO#
I'm Andreas from the localization team at Apple and today I would like to share with you some examples about how to build high-quality, localized apps.
