fix(translate): French error messages and update mock users for quota checks
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m52s

This commit is contained in:
2026-06-14 19:20:44 +02:00
parent adc3583358
commit b9446f166d
5 changed files with 61 additions and 25 deletions

View File

@@ -287,16 +287,16 @@ class FileValidator:
if extension.lower() == ".pdf":
if not content.startswith(self.PDF_MAGIC_BYTES):
raise ValidationError(
"File content does not match expected PDF format. "
"The file may be corrupted.",
"Le contenu du fichier ne correspond pas au format PDF attendu. "
"Le fichier est peut-être corrompu.",
code="invalid_file_content",
)
return
# Office files are ZIP-based
if not content.startswith(self.OFFICE_MAGIC_BYTES):
raise ValidationError(
"File content does not match expected Office format. "
"The file may be corrupted or not a valid Office document.",
"Le contenu du fichier ne correspond pas au format Office attendu. "
"Le fichier est peut-être corrompu ou n'est pas un document Office valide.",
code="invalid_file_content",
)