Last active
August 23, 2016 08:13
-
-
Save acicartagena/1dabceece65d0d0ec470cb316324469c to your computer and use it in GitHub Desktop.
bash script generates Localizable.strings file, uses that one to check spelling of user facing text using aspell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#needs aspell installed, used to check spelling | |
#brew install aspell | |
rm spellingErrors.txt #remove existing spellingErrors.txt file | |
cd .. #need to run genstrings on parent directory | |
find ./ -name "*.swift" -print0 -o -name "*.m" -print0 | xargs -0 genstrings -o en.lproj | |
cd en.lproj | |
iconv -f UTF-16le -t UTF-8 Localizable.strings > allStrings.txt #convert to utf-8 | |
cat allStrings.txt | aspell list > spellingErrors.txt #check spelling | |
rm allStrings.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
place this file on the en.lproj directory