]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔧 Add pre-commit local script to fix language translations (#14683)
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 10 Jan 2026 22:17:46 +0000 (14:17 -0800)
committerGitHub <noreply@github.com>
Sat, 10 Jan 2026 22:17:46 +0000 (22:17 +0000)
.pre-commit-config.yaml

index 5da3cccf1e833aba14c4fec157063ebd568aeb84..d88b70b7b64d7277eab28239da7996b776458a7f 100644 (file)
@@ -58,3 +58,9 @@ repos:
         entry: uv run ./scripts/docs.py ensure-non-translated
         files: ^docs/(?!en/).*|^scripts/docs\.py$
         pass_filenames: false
+
+      - id: fix-translations
+        language: unsupported
+        name: fix translations
+        entry: uv run ./scripts/translation_fixer.py fix-pages
+        files: ^docs/(?!en/).*/docs/.*\.md$