Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imwildcat/bettergenstrings
Command line tool to improve the experience while using `genstrings`
https://github.com/imwildcat/bettergenstrings
apple internationalization ios macos swift xcode
Last synced: about 1 month ago
JSON representation
Command line tool to improve the experience while using `genstrings`
- Host: GitHub
- URL: https://github.com/imwildcat/bettergenstrings
- Owner: imWildCat
- License: mit
- Created: 2020-06-02T11:59:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-17T06:25:45.000Z (over 1 year ago)
- Last Synced: 2024-12-07T07:08:46.170Z (about 1 month ago)
- Topics: apple, internationalization, ios, macos, swift, xcode
- Language: Swift
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BetterGenStrings
A command line tool to improve the experience while using `genstrings`.
The built-in tool called `genstring` will overwrite the existing .strings file instead of only adding new items. `BetterGenStrings` is designed to achive the incremental iteration of your .strings file.
## Usage example
```shell
#!/usr/bin/env shtmpdir=$(mktemp -d)
tmpfile="$tmpdir/Localizable.strings"
find YourMainTarget YourSecondOptionalTarget -name \*.swift -print0 | xargs -0 genstrings -SwiftUI -o $tmpdir
BetterGenStrings -i $tmpfile ./YourMainTarget/zh-Hans.lproj/Localizable.strings
```## License
MIT.