Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create locale django.mo files in CI #154

Open
asfaltboy opened this issue Dec 15, 2021 · 0 comments
Open

Create locale django.mo files in CI #154

asfaltboy opened this issue Dec 15, 2021 · 0 comments

Comments

@asfaltboy
Copy link
Member

Is your feature request related to a problem? Please describe.

We can commit django.mo files to the repo, but we might forget to compile to the latest version. We can safeguard against this by always creating the compiled version in all CI steps (build & deploy).

Describe the solution you'd like

Run django-admin compilemessages in github actions.

Describe alternatives you've considered

One alternative could be to require a django.mo file to be committed for every django.po change. This is fragile, however as we have no way of confirming this is the correct result file has been committed (without compiling again and comparing).

Additional context

https://docs.djangoproject.com/en/4.0/topics/i18n/translation/
https://www.hacksoft.io/blog/github-actions-in-action-setting-up-django-and-postgres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant