localize-app-name

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i localize-app-name

Weekly Downloads

0

Version

1.0.4

License

none

Last publish

Collaborators

  • arthurt20170512