📝 A script that finds unused localized strings generated by SwiftGen.
- It finds all string keys in
.strings
files - Converts the keys into Localize generated format:
"generic_password.
=>L10n.Generic.password
- Searches through the source code and finds which keys are not used
- Open the project
- Add signing in project settings
- Edit Scheme and add 2 arguments
- Path to Resources folder containing the Localizable.strings file, fx:
/Users/{user}/Git/{project}/{target}/Resources
- Path to the folder the program should look for string uses fx:
/Users/{user}/Git/{project}
- Path to Resources folder containing the Localizable.strings file, fx:
- Run the program and wait for the the complete list of unused strings to be printed
This script is not guaranteed to process perfectly.
This script does not currently support the stringsdict file for plurals