diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yaml index 30ab671..d46df95 100644 --- a/.github/workflows/publish-to-pypi.yaml +++ b/.github/workflows/publish-to-pypi.yaml @@ -28,7 +28,13 @@ jobs: python-version: 3.x - name: Install dependencies - run: python3 -m pip install --upgrade pip build twine + run: | + apt update + apt install -y gettext + python3 -m pip install --upgrade pip django build twine + + - name: Compile .po files to .mo + run: django-admin compilemessages --ignore "**/django/**" - name: Build package env: diff --git a/MANIFEST.in b/MANIFEST.in index a53664b..9b0ec0c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,5 @@ recursive-include django_admin_actions_args/static *.css *.js recursive-include django_admin_actions_args/templates *.html + +include django_admin_actions_args/locale/*/LC_MESSAGES/*.mo +include django_admin_actions_args/locale/*/LC_MESSAGES/*.po