Skip to content

Commit

Permalink
🔥(back) remove compiled translation file
Browse files Browse the repository at this point in the history
The compiles translation file should not be track with git.
  • Loading branch information
lunika committed Jan 16, 2025
1 parent bfcae71 commit 268297b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/crowdin_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
- name: generate pot files
working-directory: src/backend
run: |
DJANGO_CONFIGURATION=Build python manage.py compilemessages
DJANGO_CONFIGURATION=Build python manage.py makemessages -a --keep-pot
# frontend i18n
- name: Setup Node.js
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ MANIFEST
.next/

# Translations # Translations
*.mo
*.pot

# Environments
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ COPY ./src/backend /app/
WORKDIR /app

# collectstatic
RUN DJANGO_CONFIGURATION=Build DJANGO_JWT_PRIVATE_SIGNING_KEY=Dummy \
RUN DJANGO_CONFIGURATION=Build \
python manage.py collectstatic --noinput

# Replace duplicated file by a symlink to decrease the overall size of the
Expand Down Expand Up @@ -92,6 +92,11 @@ COPY ./src/backend /app/

WORKDIR /app

# Generate compiled translation messages
RUN DJANGO_CONFIGURATION=Build \
python manage.py compilemessages


# We wrap commands run in this container by the following entrypoint that
# creates a user on-the-fly with the container user ID (see USER) and root group
# ID.
Expand Down
Binary file removed src/backend/locale/de_DE/LC_MESSAGES/django.mo
Binary file not shown.
Binary file removed src/backend/locale/en_US/LC_MESSAGES/django.mo
Binary file not shown.
Binary file removed src/backend/locale/fr_FR/LC_MESSAGES/django.mo
Binary file not shown.

0 comments on commit 268297b

Please sign in to comment.