Skip to content

Commit ec62a46

Browse files
authored
fix: preserves existing Info.plist settings (#308)
Ensures that existing settings in the Info.plist file are preserved when adding the CFBundleLocalizations key. It merges the new settings with the existing ones instead of overwriting them.
1 parent 920c165 commit ec62a46

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/expo.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ const withIosAppLocales: Expo.ConfigPlugin<string[]> = (
1414
locales,
1515
) => ({
1616
...config,
17-
ios: { ...ios, infoPlist: { CFBundleLocalizations: locales } },
17+
ios: {
18+
...ios,
19+
infoPlist: {
20+
...ios.infoPlist,
21+
CFBundleLocalizations: locales
22+
}
23+
},
1824
});
1925

2026
const withAndroidAppLocales: Expo.ConfigPlugin<string[]> = (

0 commit comments

Comments
 (0)