Reputation: 342
I need to translate app name based on mobile culture. i have seen many sample for that, but in most of the samples, only translate the set of language and assign in resource file. But i need to translate app name to all mobile supported language. Is there any solution to achieve that?
Upvotes: 1
Views: 998
Reputation: 15816
The app name should be localized in each platform.
For iOS:
iOS uses a naming standard called Localization Projects or .lproj directories to contain image and string resources. These directories can contain localized versions of images used in the app, and also the InfoPlist.strings file that can be used to localize the app name.
See document here: localization#app-name-ios
There is also a sample in this thread: localized-app-name-for-xamarin-ios
For Android:
Android follows a different scheme for storing localized images using different drawable and strings directories with a language code suffix. When a four-letter locale code is required (such as zh-TW or pt-BR), note that Android requires an additional r following the dash/preceding the locale code (eg. zh-rTW or pt-rBR).
See document here: localization#app-name-android
But i need to translate app name to all mobile supported language.
You can add as many as possible resource files of different languages in your project to support the transfer of all mobile supported language
.
Upvotes: 1