You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
307 B
14 lines
307 B
#!/usr/bin/env fish
|
|
|
|
set -g TRANSIFEX ".tx/js/"
|
|
set -g JS "isso/js/app/i18n/%s.js"
|
|
|
|
# fetch latest translations to .tx/<ressource>/<lang>
|
|
tx pull -a
|
|
|
|
for lang in (ls $TRANSIFEX)
|
|
printf "define(" > (printf $JS $lang)
|
|
cat .tx/js/$lang >> (printf $JS $lang)
|
|
printf ");\n" >> (printf $JS $lang)
|
|
end
|