diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8432fe48b3..86d1ef07cb 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,14 +9,12 @@ on: jobs: pre-commit: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v5 with: fetch-depth: 0 - - uses: actions/setup-python@v6 with: - python-version: "3.10" - + python-version: "3.x" + - run: sudo apt install -y gettext - uses: pre-commit/action@v3.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a5ea46db1a..55a5cb5633 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,3 +45,8 @@ repos: rev: v2.6.0 hooks: - id: pyproject-fmt + +- repo: https://github.com/browniebroke/django-pre-commit-hooks + rev: v1.1.0 + hooks: + - id: compile-messages diff --git a/rest_framework/locale/fr/LC_MESSAGES/django.mo b/rest_framework/locale/fr/LC_MESSAGES/django.mo index e29c704f13..b25dfd7534 100644 Binary files a/rest_framework/locale/fr/LC_MESSAGES/django.mo and b/rest_framework/locale/fr/LC_MESSAGES/django.mo differ diff --git a/rest_framework/locale/fr/LC_MESSAGES/django.po b/rest_framework/locale/fr/LC_MESSAGES/django.po index 9410b736f7..ee48f2c257 100644 --- a/rest_framework/locale/fr/LC_MESSAGES/django.po +++ b/rest_framework/locale/fr/LC_MESSAGES/django.po @@ -276,7 +276,7 @@ msgstr "La date n'a pas le bon format. Utilisez un des formats suivants : {form #: fields.py:1237 msgid "Expected a date but got a datetime." -msgstr "Attendait une date mais a reçu une date + heure." +msgstr "Attendait une date mais a reçu une date et heure." #: fields.py:1303 #, python-brace-format