I want to put the Android app name in Japanese.

Asked 1 years ago, Updated 1 years ago, 113 views

I tried the following two methods, but I couldn't put the app name in Japanese on Android.

  • Method 1

Do what is written on the site below and add the platforms folder when you build it.

https://designsupply-web.com/knowledgeside/1755/

  • Method 2

Use the cordova-custom-config plug-in feature.

Specifically, add the cordova-custom-config plug-in and
Add the following to the config.xml file:

<platform name="android">
    <preference name="android-manifest/application/activity/@android:label"value="sample app name"/>
</platform>

By the way, for iOS,
Add the cordova-custom-config plug-in and
If you add the following to the config.xml file,
The name of the app has been translated into Japanese.

<platform name="ios">
    <config-file platform="ios" target="*-Info.plist" parent="CFBundleDisplayName">
        <string> Sample App Name</string>
    </config-file>
</platform>

If you know how to change the name of the app to Japanese on Android,
Could you tell me how to do it?

android cordova

2022-09-30 21:34

1 Answers

This is an introduction to the third-party plug-in I use, but I can use the plug-in below to support both operating systems.

https://github.com/kelvinhokk/cordova-plugin-localization-strings

//translations/app/ja.json
{
  "config_ios": {
    "CFBundleDisplayName": "Sample App Name",
    "CFBundleName": "Sample App Name"
  },
  "config_android": {
    "app_name": "Sample App Name"
  }
}

Both Android and iOS can change the app name display by creating a localization file for each project.The plug-in above will generate the localization file from the json file you created.

If you haven't solved it, please try it


2022-09-30 21:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.