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:
17
Makefile
Normal file
17
Makefile
Normal 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
|
Reference in New Issue
Block a user