Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salmik/localizecleaner
Find unused localizable strings in your Xcode project
https://github.com/salmik/localizecleaner
ios utils xcode
Last synced: about 9 hours ago
JSON representation
Find unused localizable strings in your Xcode project
- Host: GitHub
- URL: https://github.com/salmik/localizecleaner
- Owner: Salmik
- License: mit
- Created: 2024-03-14T04:19:27.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-14T04:50:44.000Z (8 months ago)
- Last Synced: 2024-03-14T05:34:52.635Z (8 months ago)
- Topics: ios, utils, xcode
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```