mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2025-08-17 18:11:08 +08:00
Use jq only in wp-invalid-lang.sh
This commit is contained in:
parent
5aaf41026b
commit
4da5565460
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ WP_ORG_CORE_TRANSLATIONS="https://api.wordpress.org/translations/core/1.0/"
|
|||
|
||||
set -e
|
||||
|
||||
LANGS_REGEXP="en_US|$(wget -q -O- "$WP_ORG_CORE_TRANSLATIONS" | jq -r '.translations[].language' | paste -s -d "|")"
|
||||
LANGS_REGEXP="en_US|$(wget -q -O- "$WP_ORG_CORE_TRANSLATIONS" | jq -r '."translations" | map(."language") | join("|")'
|
||||
|
||||
while read -r MO; do
|
||||
MO_LANG="$(basename "$MO")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue