Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Binary file modified rest_framework/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion rest_framework/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down