@mankin/expo-mods-localized-name
v0.0.3
Published
Support a localized application name with expo
Downloads
16
Maintainers
Readme
expo-mods-localized-name
Config plugin to auto-configure localized app name when the native code is generated (expo prebuild).
Expo installation
npm install @mankin/expo-mods-localized-nameTested against Expo SDK 47.
This package cannot be used in the "Expo Go" app because it requires custom native code. First install the package with pnpm, yarn, npm, or
expo install.
After installing this npm package, add the locales and config plugin to the plugins array of your app.json or app.config.js:
{
"expo": {
...
"locales": {
"en": "./locales/en.json",
"zh": "./locales/zh.json"
},
"plugins": ["@mankin/expo-mods-localized-name"]
}
}Your en.json should look like:
{
"CFBundleDisplayName": "example", // iOS App Name
"app_name": "example" // Android App Name
}Next, rebuild your app as described in the "Adding custom native code" guide.
