Add script for message generation

- set TZ to UTC(+0)
This commit is contained in:
tequ
2023-09-12 13:31:24 +09:00
parent ba8a99312a
commit 4e773b9c32

10
tool/generate_all_message.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
## Run from the root directory of the repo to generate & compile all messages
TZ="UTC" pybabel extract -F ./locale/babel.cfg -o ./locale/messages.pot ./
pybabel update -l ja -d ./locale/ -i ./locale/messages.pot
pybabel update -l hi -d ./locale/ -i ./locale/messages.pot
pybabel compile -f -d ./locale/