hanayo/scripts/download-locales.sh
2019-02-23 13:29:15 +00:00

12 lines
415 B
Bash

#!/bin/bash
rm data/{js-,}locales/templates-*.po
cd data/locales
for i in it es de pl ru fr nl sv "fi" ro ko vi; do
echo "$i"
wget -O templates-$i.po --quiet "https://cutebirbs.ripple.moe/export/?path=/$i/Hanayo/"
cd ../js-locales
wget -O templates-$i.po --quiet "https://cutebirbs.ripple.moe/export/?path=/$i/HanayoJS/"
i18next-conv -l $i -s templates-$i.po -t ../../static/locale/$i.json
cd ../locales
done