aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libretube-theme/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/libretube-theme/Makefile b/libretube-theme/Makefile
new file mode 100644
index 0000000..2b3fc38
--- /dev/null
+++ b/libretube-theme/Makefile
@@ -0,0 +1,10 @@
+.PHONY: compile extract update
+
+extract:
+ pybabel extract --mapping babel.cfg --output messages.pot ./
+
+compile:
+ pybabel compile --directory translations/ --domain messages
+
+update: extract
+ pybabel update --input-file messages.pot --output-dir translations/ --domain messages