Chapter 18. Localization

This chapter is quick and simple, but what we will learn to do can make your app accessible to millions of potential users. We will see how to add additional languages and we will see why adding text the correct way via String resources benefits us when it comes to adding multiple languages.

In this chapter, we will do the following:

  • Make the Note to self app multilingual by adding the Spanish and German languages
  • Learn how to better use String resources

Let's get started.

Making the Note to self app Spanish, English, and German

First, we need to add some folders to our project – one for each new language. The text is classed as a resource, and, consequently, needs to go in the res folder. Follow these steps to add Spanish ...

Get Android Programming with Kotlin for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.