2018-09-21 21:00:42 +00:00
|
|
|
backup-locales:
|
|
|
|
cp app/locales/*.yml zanata/backup/
|
2018-03-21 07:04:22 +00:00
|
|
|
|
2018-09-21 21:00:42 +00:00
|
|
|
restore-locales:
|
|
|
|
cp zanata/backup/*.yml app/locales/
|
2018-03-21 07:04:22 +00:00
|
|
|
|
2018-09-21 21:00:42 +00:00
|
|
|
prepare-locales:
|
|
|
|
rm -f zanata/yml/*.yml zanata/po/*.po zanata/po/*.pot zanata/po/*.err
|
2018-03-21 07:04:22 +00:00
|
|
|
|
2018-09-21 21:00:42 +00:00
|
|
|
clean-locales: backup-locales prepare-locales
|
|
|
|
zanata/scripts/yml2po.sh
|
|
|
|
zanata/scripts/po2yml.sh
|
2018-03-21 07:04:22 +00:00
|
|
|
|
2018-09-21 21:00:42 +00:00
|
|
|
po:
|
|
|
|
zanata/scripts/yml2po.sh
|
2018-03-30 13:27:39 +00:00
|
|
|
|
2018-09-21 21:00:42 +00:00
|
|
|
yml: backup-locales
|
|
|
|
zanata/scripts/po2yml.sh
|
2018-03-21 07:04:22 +00:00
|
|
|
|
2018-09-21 21:00:42 +00:00
|
|
|
push-locales: po
|
|
|
|
zanata-cli -q -B push --push-type both
|
2018-03-21 07:04:22 +00:00
|
|
|
|
2018-09-21 21:00:42 +00:00
|
|
|
pull-locales: prepare-locales
|
2019-02-08 13:21:12 +00:00
|
|
|
cp -n zanata/zanata.xml zanata.xml
|
|
|
|
sed -e 's@<project></project>@<project>join-peertube</project>@' -i zanata.xml
|
2018-09-21 21:00:42 +00:00
|
|
|
zanata-cli -q -B pull --pull-type both --min-doc-percent 75
|
|
|
|
make yml
|
|
|
|
|
|
|
|
preview:
|
|
|
|
npm run preview
|
|
|
|
|
|
|
|
build:
|
|
|
|
npm run prod
|