Localizing app name in Android

localizing-app-name-in-android

Did my first multi-language app in Unity the other day and wanted to use localized app names in Android. Quite a bit of a hassle to figure out, and I ended up mix matching information from a couple of sites to get it working.

Here we go...

If it doesn't already exist, create a folder \Assets\Plugins\Android\res\values-xx for each additional language you want to support. Substitute "xx" with the two letter language ( not country! ) code.

Also make one without a language code ( \Assets\Plugins\Android\res\values ) which will be the default one, if your device doesn't match any of the languages you created.

So you would end up with these folders:

\Assets\Plugins\Android\res\values
\Assets\Plugins\Android\res\values-es
\Assets\Plugins\Android\res\values-nl

In each of those folders, create an xml file called strings.xml containing this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">Hello World</string>
</resources>

Let's say the default language is going to be English, so this xml with "Hello World" would go into the values folder. Another one with "Hola Mundo" for the values-es folder and "Hallo Wereld" in the values-nl folder.

A bit of a hassle, but it works.