Add update-strings.sh to generate Localizable.strings (UTF-8)

This commit is contained in:
Matthew Wild 2021-09-21 22:52:33 +01:00
parent 3fd4dd1989
commit 632f28b664

7
update-strings.sh Executable file
View file

@ -0,0 +1,7 @@
if ! test -d Snikket/tmp.strings; then
mkdir Snikket/tmp.strings;
fi
find ./Snikket -name "*.swift" -print0 | xargs -0 genstrings -o Snikket/tmp.strings
iconv -f utf-16 -t utf-8 Snikket/tmp.strings/Localizable.strings > Snikket/en.lproj/Localizable.strings
rm -rf Snikket/tmp.strings