1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-14 13:36:33 +02:00

Add Makefile with translations compilation.

This commit is contained in:
Bogdan Bodnar
2019-08-28 16:47:00 +02:00
parent bcfe736521
commit 618738ce1d
22 changed files with 1534 additions and 0 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
.PHONY: all create-messages update-messages clean
all:
@echo "make create-messages"
@echo " Create locale messages (.pot)."
@echo "make update-messages"
@echo " Update locale messages from .pot file."
@echo "make clean"
@echo " Remove python artifacts and virtualenv."
create-messages:
pybabel extract -F babel.cfg -o ./translations/forisjs.pot .
update-messages:
pybabel update -i translations/forisjs.pot -d translations
clean:
rm -rf node_modules dist