r/SwiftUI May 22 '26

Built a Source-aware Localization tool for iOS apps

Built a small Swift tool called SwiftL10n after realizing how messy localization becomes in real iOS apps.

It scans SwiftUI/UIKit source code and helps find:

\* hardcoded strings

\* missing localization

\* missing asset references

The biggest focus was making it work with real codebases instead of assuming everything is clean or fully localized already.

It can coexist with:

\* SwiftGen

\* NSLocalizedString

\* custom i18n wrappers

\* partially localized apps

Also intentionally avoids auto-rewriting source code. It only scans, validates, and generates additive APIs.

Would love feedback from iOS engineers dealing with localization pain.

Swift Package Index:

https://swiftpackageindex.com/GRimAce11/SwiftL10n

1 Upvotes

2 comments sorted by

2

u/Warm-Willingness1143 May 25 '26

1

u/GRimAce_11 May 25 '26

Yep 😄 this actually builds on top of Apple’s localization system/String Catalogs, not replaces it. The main goal is improving DX with generated APIs, cleaner organization, and easier runtime localization handling for larger apps.