@mmomtchev/expo-android-localized-app-name

1.0.1 • Public • Published

expo-android-localized-app-name

Support a localized application name with expo on Android

Usage

yarn add -D @mmomtchev/expo-android-localized-app-name

Then add to your app.config.js:

import withAndroidLocalizedName from '@mmomtchev/expo-android-localized-app-name';

export default {
    name: 'my app',
    locales: {
        fr: './fr.json'
    },
    ios: {
        // iOS support is built-in in expo
        infoPlist: {
            CFBundleAllowMixedLocalizations: true
        }
    },
    plugins: [
        withAndroidLocalizedName
    ]
};

Your fr.json should look like:

{
    "CFBundleDisplayName": "mon app", // iOS
    "app_name": "mon app"             // Android
}

Readme

Keywords

none

Package Sidebar

Install

npm i @mmomtchev/expo-android-localized-app-name

Weekly Downloads

72

Version

1.0.1

License

ISC

Unpacked Size

3.66 kB

Total Files

4

Last publish

Collaborators

  • mmomtchev