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
|
|
|
|
cp zanata/zanata.xml zanata.xml
|
|
|
|
zanata-cli -q -B pull --pull-type both --min-doc-percent 75
|
|
|
|
make yml
|
|
|
|
|
|
|
|
preview:
|
|
|
|
npm run preview
|
|
|
|
|
|
|
|
build:
|
|
|
|
npm run prod
|