TechBuzzPro

Localize App Name in Launcher with Flutter – Step by Step

· 5 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step‑By‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can localize the app name shown in the Android and iOS launchers by adding language‑specific entries to the native configuration files and referencing them from Flutter.

What You'll Need

  • Flutter SDK (latest stable version)
  • Android Studio or VS Code with Android command‑line tools
  • Xcode (for iOS) or a macOS machine with the iOS toolchain
  • Basic knowledge of editing XML (Android) and plist (iOS) files
  • The intl package (optional, for runtime string localization)

Step‑By‑Step

  1. Enable Flutter localization support. Open pubspec.yaml and add the flutter_localizations and intl packages under dependencies:
    dependencies:
      flutter:
        sdk: flutter
      flutter_localizations:
        sdk: flutter
      intl: ^0.18.0
    Run flutter pub get. This step is not strictly required for the launcher name, but it keeps your project ready for other localized strings.
  2. Create Android string resources. In android/app/src/main/res/values/strings.xml locate the existing <string name="app_name"> entry. It usually looks like:
    <string name="app_name">MyApp</string>
    Replace the value with a generic placeholder (e.g., MyApp) that will be overridden by language‑specific files.
  3. Add language folders for Android. For each language you want to support, create a new folder under android/app/src/main/res/ following the Android resource naming convention:
    • values-fr/strings.xml for French
    • values-es/strings.xml for Spanish
    • values-zh-rCN/strings.xml for Simplified Chinese
    Inside each file, add a matching app_name entry:
    <resources>
      <string name="app_name">MonAppli</string>
    </resources>
    Adjust the text to the appropriate translation.
  4. Reference the string in AndroidManifest.xml. Open android/app/src/main/AndroidManifest.xml. Locate the application tag and set the android:label attribute to the string resource you just defined:
    <application
        android:name=".MainApplication"
        android:label="@string/app_name"
        ...>
        ...
    </application>
    Using @string/app_name tells Android to pull the correct localized value at runtime.
  5. Configure iOS localized display name. Open the iOS project in Xcode (or edit the files directly). In ios/Runner/Info.plist find the CFBundleDisplayName key. If it does not exist, add it:
    <key>CFBundleDisplayName</key>
    <string>MyApp</string>
    Replace MyApp with a placeholder that will be overridden by localized .strings files.
  6. Create iOS localization folders. In Xcode, select the Runner target, then choose File > New > File… > Strings File. Name it InfoPlist.strings. Xcode will ask which languages to localize – select each language you need (e.g., French, Spanish, Chinese). This creates language‑specific InfoPlist.strings files inside Runner/.
  7. Add the localized display name for iOS. Open each generated InfoPlist.strings file and add the following line, translating the value:
    "CFBundleDisplayName" = "MonAppli"; // French example
    Repeat for every language, using the appropriate translation.
  8. Rebuild the project. Run flutter clean then flutter run (or build an APK/IPA). The launcher on the device will now read the correct name based on the system language.
  9. Test on multiple devices. Change the language setting on an Android emulator and an iOS simulator to verify that the name updates without requiring a code change.

Common Mistakes

  • Using the wrong resource folder name (e.g., values-fr-FR instead of values-fr) – Android will ignore the file.
  • Leaving the android:label attribute hard‑coded instead of referencing @string/app_name – the launcher will never switch languages.
  • For iOS, editing Info.plist directly without adding InfoPlist.strings – the system will not pick up localized values.
  • Missing the CFBundleDisplayName key entirely – iOS falls back to the bundle name, which is often the English version.
  • Not cleaning the build after adding new resource folders – stale caches can cause the old name to persist.

Tips

  • Keep the placeholder value in the base strings.xml and Info.plist short; the localized versions can be longer if needed.
  • Use the same translation file for both UI strings (via intl) and launcher name to avoid duplication.
  • If you support right‑to‑left languages, verify that the name displays correctly on the home screen; some launchers truncate long names.
  • When adding a new language, repeat steps 3‑7 for both platforms before releasing an update.
  • Version control your android/res and ios/Runner localization folders – they are easy to overlook in code reviews.

Troubleshooting

If the launcher still shows the English name:

  1. Confirm the device language matches one of the locales you added. Android falls back to the default values/strings.xml if no exact match exists.
  2. Run flutter clean and rebuild. Stale Gradle or Xcode caches often keep the old string.
  3. Open the generated APK (Android) or .app bundle (iOS) with a file explorer and verify that the language‑specific strings.xml or InfoPlist.strings files are present.
  4. Check the AndroidManifest.xml android:label attribute – it must be exactly @string/app_name, not a literal value.
  5. For iOS, ensure the InfoPlist.strings files are listed under Copy Bundle Resources in Xcode. If they are missing, the system cannot read them.
  6. If the name appears truncated, reduce its length or use a shorter translation; some launchers limit the display to 12–15 characters.

If none of the above resolves the issue, consider creating a minimal test project with only the localization files to isolate whether the problem lies in the Flutter layer or the native configuration.

Frequently Asked Questions

Do I need to restart the device after adding a new language?

No. Changing the system language or installing a new locale triggers the launcher to reload the app name automatically. A full rebuild of the app is required, however.

Can I change the launcher name at runtime based on user preference?

The launcher reads the name from static resources; it cannot be altered dynamically after the app is installed. You would need to ship a new version with updated resources.

What if I want to support a language that uses a script not covered by the default Android folder naming?

Use the appropriate qualifier, such as values-zh-rTW for Traditional Chinese (Taiwan) or values-b+sr+Latn for Serbian Latin script. Android’s documentation lists all valid qualifiers.

Is the intl package required for launcher name localization?

No. The intl package only helps with in‑app string translation. Launcher name localization relies solely on native resource files.

Will the localized name appear in the app store listing?

No. Store listings are managed separately in the Play Console or App Store Connect. The steps above affect only the name shown on the device’s home screen.

How do I verify that the correct name is being used on a physical device?

Change the device language in Settings, then return to the home screen. The app icon should display the name from the matching locale file. You can also use adb shell dumpsys package com.your.package to view the resolved application-label on Android.