mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-15 13:37:56 +08:00
Adding translation mo files automatically on build (#65)
This commit is contained in:
9
django_compilemessages.py
Normal file
9
django_compilemessages.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import subprocess
|
||||
|
||||
|
||||
def generate_mo_files():
|
||||
subprocess.run(["django-admin", "compilemessages"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
generate_mo_files()
|
||||
@@ -80,3 +80,7 @@ sentry = ["django-q-sentry"]
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
multi_line_output = 3
|
||||
|
||||
[tool.poetry.build]
|
||||
generate-setup-file = false
|
||||
script = "django_compilemessages.py"
|
||||
|
||||
Reference in New Issue
Block a user