Localize App Name in Launcher with Flutter – Step by Step
In this article
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
intlpackage (optional, for runtime string localization)
Step‑By‑Step
-
Enable Flutter localization support. Open
pubspec.yamland add theflutter_localizationsandintlpackages underdependencies:dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter intl: ^0.18.0Runflutter pub get. This step is not strictly required for the launcher name, but it keeps your project ready for other localized strings. -
Create Android string resources. In
android/app/src/main/res/values/strings.xmllocate 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. -
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.xmlfor Frenchvalues-es/strings.xmlfor Spanishvalues-zh-rCN/strings.xmlfor Simplified Chinese
app_nameentry:<resources> <string name="app_name">MonAppli</string> </resources>
Adjust the text to the appropriate translation. -
Reference the string in AndroidManifest.xml. Open
android/app/src/main/AndroidManifest.xml. Locate theapplicationtag and set theandroid:labelattribute to the string resource you just defined:<application android:name=".MainApplication" android:label="@string/app_name" ...> ... </application>Using@string/app_nametells Android to pull the correct localized value at runtime. -
Configure iOS localized display name. Open the iOS project in Xcode (or edit the files directly). In
ios/Runner/Info.plistfind theCFBundleDisplayNamekey. If it does not exist, add it:<key>CFBundleDisplayName</key> <string>MyApp</string>
ReplaceMyAppwith a placeholder that will be overridden by localized .strings files. -
Create iOS localization folders. In Xcode, select the
Runnertarget, then chooseFile > New > File… > Strings File. Name itInfoPlist.strings. Xcode will ask which languages to localize – select each language you need (e.g., French, Spanish, Chinese). This creates language‑specificInfoPlist.stringsfiles insideRunner/. -
Add the localized display name for iOS. Open each generated
InfoPlist.stringsfile and add the following line, translating the value:"CFBundleDisplayName" = "MonAppli"; // French example
Repeat for every language, using the appropriate translation. -
Rebuild the project. Run
flutter cleanthenflutter run(or build an APK/IPA). The launcher on the device will now read the correct name based on the system language. - 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-FRinstead ofvalues-fr) – Android will ignore the file. - Leaving the
android:labelattribute hard‑coded instead of referencing@string/app_name– the launcher will never switch languages. - For iOS, editing
Info.plistdirectly without addingInfoPlist.strings– the system will not pick up localized values. - Missing the
CFBundleDisplayNamekey 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.xmlandInfo.plistshort; 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/resandios/Runnerlocalization folders – they are easy to overlook in code reviews.
Troubleshooting
If the launcher still shows the English name:
- Confirm the device language matches one of the locales you added. Android falls back to the default
values/strings.xmlif no exact match exists. - Run
flutter cleanand rebuild. Stale Gradle or Xcode caches often keep the old string. - Open the generated APK (Android) or .app bundle (iOS) with a file explorer and verify that the language‑specific
strings.xmlorInfoPlist.stringsfiles are present. - Check the AndroidManifest.xml
android:labelattribute – it must be exactly@string/app_name, not a literal value. - For iOS, ensure the
InfoPlist.stringsfiles are listed underCopy Bundle Resourcesin Xcode. If they are missing, the system cannot read them. - 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.