Skip to content

Instantly share code, notes, and snippets.

@chrisvasselli
chrisvasselli / glossary-lookup.sh
Last active October 1, 2021 14:10
Lookup translations of a word in Apple's glossaries
# Run from a folder containing a folder for each language you want to look up a word in,
# with the contents of the glossaries from https://developer.apple.com/download/more/?=glossaries
#
# Prints the all translations found for the given word in each language, along with how many occurrences of that translation were found.
#
# Dependencies
# brew install xmlstarlet
#
# Usage
#