Update locales with transifex data (#17222)

Update locales with transifex data
This commit is contained in:
John Molakvoæ 2019-11-06 12:40:06 +01:00 committed by GitHub
commit dc3c13edd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1116 additions and 435 deletions

File diff suppressed because it is too large Load Diff

11
resources/update-locales.sh Executable file
View File

@ -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