Skip to content

Instantly share code, notes, and snippets.

@letatas
Last active January 8, 2020 14:49
Show Gist options
  • Save letatas/221ea3d04e70996d026362de57c1b084 to your computer and use it in GitHub Desktop.
Save letatas/221ea3d04e70996d026362de57c1b084 to your computer and use it in GitHub Desktop.
First script used to update intent definition localization strings files (usage can be found here: https://stackoverflow.com/questions/52659028/xcode-10-how-to-refresh-localization-of-a-siri-shortcut-intent-definiotion-fil)
#!/bin/sh
set -e
if [[ -z "$1" ]]; then
echo "Usage:\n\t$0 <FILE>\n"
exit 1
fi
echo "👍 Processing $1"
last=$(mktemp)
git show HEAD:"$1" > "${last}"
dir=$(dirname "$0")
"${dir}"/update-strings-file.swift "${last}" "$1"
echo "✅ Process complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment