1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-18 04:00:03 +02:00

extras: Adding dictionary files and support scripts.

This commit is contained in:
Henrik Hautakoski 2020-02-13 14:55:11 +01:00
parent 4ddcedb5d6
commit c8cd7f10e4
4 changed files with 45664 additions and 0 deletions

17
scripts/update-dict.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Updates the dictionary files defined in extras/dict.json.
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
EXTRAS_DIR=${BASE_DIR}/../extras
CONFIG=${EXTRAS_DIR}/dict.json
for lang in $(jq -r 'keys[]' $CONFIG); do
echo "- Generating: $lang"
files=$(jq -r ".$lang | if type==\"array\" then .[] else . end" $CONFIG)
dict=$(grep -hs ^ $files | $BASE_DIR/generate-dict.sh > $EXTRAS_DIR/dict/$lang)
done
echo "Done"