1.0.4 • Published 7 years ago

localize-app-name v1.0.4

Weekly downloads
20
License
-
Repository
-
Last release
7 years ago

localize-app-name

This plugin provides a way to localize your app name

Android: add the corresponding language folders to locales/android other than the appname default locale (the default appname will set in XDK project Build Settings)

iOS: add the corresponding language folders to locales/ios (the default appname will set in XDK project Build Settings)

Supported Platforms

  • Android
  • iOS

Example

e.g. if appname default in zh-TW, with additional zh-CN and en locale, then

Step 1: Enter plugin.xml with

  <!-- android -->
  <platform name="android">
    <resource-file src="locales/android/values-en/strings.xml" target="res/values-en/strings.xml" />
    <resource-file src="locales/android/values-zh-rCN/strings.xml" target="res/values-zh-rCN/strings.xml" />
  </platform>

  <!-- ios -->
  <platform name="ios">
    <resource-file src="locales/ios/en.lproj" />
    <resource-file src="locales/ios/zh-hant.lproj" />
    <resource-file src="locales/ios/zh-hans.lproj" />
  </platform>

Step 2: Edit strings.xml/InfoPlist.strings to your appname