Update locales with transifex data

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/17222/head
John Molakvoæ (skjnldsv) 5 years ago
parent b2aec1d816
commit 143dc421c8
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF

File diff suppressed because it is too large Load Diff

@ -0,0 +1,11 @@
#!/bin/env bash
URL="https://raw.githubusercontent.com/transifex/transifex/master/transifex/languages/fixtures/all_languages.json"
CMDS="curl jq"
for i in $CMDS
do
# command -v will return >0 when the $i is not found
command -v $i >/dev/null && continue || { echo "$i command not found."; exit 1; }
done
curl $URL | jq '[.[] | {code: .fields.code, name: .fields.name}]' > locales.json
Loading…
Cancel
Save