Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Use CFBundleLocalizations for iOS localization#27

Open
ThijmenDeValk wants to merge 2 commits intomainfrom
fix/20-ios-build-errors
Open

Use CFBundleLocalizations for iOS localization#27
ThijmenDeValk wants to merge 2 commits intomainfrom
fix/20-ios-build-errors

Conversation

@ThijmenDeValk
Copy link
Copy Markdown
Member

Simplifies the iOS implementation by using CFBundleLocalizations in the Info.plist instead of the convoluted method of creating empty placeholder files.

Fixes #20 and closes #23

config.modResults["LOCALES_SUPPORTED"] = locales.join(",");
config.modResults["CFBundleAllowMixedLocalizations"] = true;
config.modResults["CFBundleLocalizations"] = locales;
config.modResults["CFBundleDevelopmentRegion"] = "en";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small heads up that you might want to make this configurable (and maybe the CFBundleAllowMixedLocalizations as well).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I do think these are the sane defaults for folks that don't explicitly set them, though.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, no harm in having a sane default. You could surely have the config optional and fallback to these as default :)

I am testing out the beta as we speak btw.

fix: don't link to specific Expo version
fix: run expo-module prepare in prepare script
chore: update deps
@bitcrumb
Copy link
Copy Markdown

Any chance we can get this released? 😁

@ThijmenDeValk
Copy link
Copy Markdown
Member Author

@bitcrumb Sorry, been a busy couple of weeks 😅 I'll get it out the door later this week. Had some tweaks I wanted to make for Expo 52 first.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify iOS implementation Build input file cannot be found: '/Users/expo/workingdir/build/ios/en.lproj/Localizable.strings'

2 participants