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:
parent
4ddcedb5d6
commit
c8cd7f10e4
4 changed files with 45664 additions and 0 deletions
17
scripts/update-dict.sh
Executable file
17
scripts/update-dict.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue