Skip to content

Find unused localizable strings in your Xcode project

License

Notifications You must be signed in to change notification settings

Salmik/LocalizeCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

LocalizeCleaner

This script helps in identifying and optionally deleting unused .strings file entries within an Xcode project. It scans through your project's .swift, .m, and .h files to determine if the keys in your .strings files are being referenced. If a key is not found in the codebase, it's reported as unused.

Usage

The script can be used in two modes: inspection and deletion.

Inspection Mode

To simply inspect and report unused strings without deleting them:

./localizeCleaner.sh [path_to_project_root]

Or if you want to start in the current directory:

./localizeCleaner.sh

Deletion Mode

To delete the unused strings automatically:

./localizeCleaner.sh [path_to_project_root] delete

Or if you want to start in the current directory:

./localizeCleaner.sh delete

About

Find unused localizable strings in your Xcode project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages