paint-brush
Localize an Application Name in React Nativeby@ivanzotov
7,646 reads
7,646 reads

Localize an Application Name in React Native

by ivanzotovAugust 16th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A <a href="https://hackernoon.com/tagged/localization" target="_blank">localization</a> of an application name in a <a href="https://hackernoon.com/tagged/react-native" target="_blank">React Native</a> project and in a native project is a similar process.

People Mentioned

Mention Thumbnail
featured image - Localize an Application Name in React Native
ivanzotov HackerNoon profile picture

A localization of an application name in a React Native project and in a native project is a similar process.

Localize an iOS application name

Create a new file InfoPlist.string in the root folder in XCode:

Creating InfoPlist.string in Xcode

Add a default application name to the file, like this:


"CFBundleDisplayName" = "Example Application Name";"CFBundleName" = "Example Application Name";

Where “Example Application Name” is your application name.

Select the file and press “Localize…” button on the right side.

Then press “Localize” in the popup to add the current file as Base language.

Change the Display Name as well, because newest iOS versions uses it as a fallback instead of Base language:

Now add languages in XCode you want to localize the application name. Press “+” in “Localizations” of Info tab of your project.

Adding new language in XCode

And choose InfoPlist.string file to localize.

For each language you added XCode will create a file for InfoPlist.strings. Change the content of localized files:

That’s all!

Localize an Android application name

By default an Android application name is in strings.xml file ./android/app/src/main/res/values/strings.xml:

Similar to iOS, we’re going to localize strings file. Let’s create a new folder inside res with name like values-de , where de is a language you want to localize, it’s Deutsch in our case (full list of codes).

Copy strings.xml to the folder, and change the application name.

Done. More info about Android localization

Thanks.