Made sure the fix for escaping backslashes is applied when you run the Transifex for all locales at once.
This commit is contained in:
parent
0b84b9c443
commit
a11e695756
@ -34,8 +34,9 @@ else
|
|||||||
LOCALE=$( echo "$l" | tr -d '[:space:]' )
|
LOCALE=$( echo "$l" | tr -d '[:space:]' )
|
||||||
TRANSLATION=$(curl -L --user "$USER":"$PW" -X GET "https://www.transifex.com/api/2/project/bigbluebutton-html5/resource/enjson/translation/$LOCALE/?mode=onlytranslated&file")
|
TRANSLATION=$(curl -L --user "$USER":"$PW" -X GET "https://www.transifex.com/api/2/project/bigbluebutton-html5/resource/enjson/translation/$LOCALE/?mode=onlytranslated&file")
|
||||||
NO_EMPTY_STRINGS=$(echo "$TRANSLATION" | sed '/: \"\"/D' | sed '/}$/D')
|
NO_EMPTY_STRINGS=$(echo "$TRANSLATION" | sed '/: \"\"/D' | sed '/}$/D')
|
||||||
NO_TRAILING_COMMA=$(echo "$NO_EMPTY_STRINGS" | sed '$ s/,$//')
|
NO_TRAILING_COMMA=$(echo "$NO_EMPTY_STRINGS" | sed '$ s/,$//')
|
||||||
echo -e "$NO_TRAILING_COMMA\n}\n" > ./private/locales/"$LOCALE".json
|
echo "$NO_TRAILING_COMMA" > ./private/locales/"$LOCALE".json
|
||||||
|
echo -e "\n}\n" >> ./private/locales/"$LOCALE".json
|
||||||
echo -e "Added translation file $LOCALE.json : ${GREEN}✓${NC}"
|
echo -e "Added translation file $LOCALE.json : ${GREEN}✓${NC}"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user