32 lines
616 B
Makefile
32 lines
616 B
Makefile
backup-locales:
|
|
cp app/locales/*.yml zanata/backup/
|
|
|
|
restore-locales:
|
|
cp zanata/backup/*.yml app/locales/
|
|
|
|
prepare-locales:
|
|
rm -f zanata/yml/*.yml zanata/po/*.po zanata/po/*.pot zanata/po/*.err
|
|
|
|
clean-locales: backup-locales prepare-locales
|
|
zanata/scripts/yml2po.sh
|
|
zanata/scripts/po2yml.sh
|
|
|
|
po:
|
|
zanata/scripts/yml2po.sh
|
|
|
|
yml: backup-locales
|
|
zanata/scripts/po2yml.sh
|
|
|
|
push-locales: po
|
|
zanata-cli -q -B push --push-type both
|
|
|
|
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
|