Skip to content

🔨 Tweak translation workflow and translation fixer tool#15166

Merged
tiangolo merged 2 commits intomasterfrom
dont-fail-on-translation-verification-failure
Mar 19, 2026
Merged

🔨 Tweak translation workflow and translation fixer tool#15166
tiangolo merged 2 commits intomasterfrom
dont-fail-on-translation-verification-failure

Conversation

@YuriiMotov
Copy link
Copy Markdown
Member

@YuriiMotov YuriiMotov commented Mar 19, 2026

This PR includes 2 fixes:

1. Don't fail if translation doesn't pass validation (just save it and continue with next page)

When translation script fails to translate page after 3 attempts (results fails to pass validation), it currently causes the workflow to fail. So, we are missing all data processed by that moment..
We can actually just skip it and fix this page later manually.

2. Forbid whitespace before attributes in markdown link pattern

## [title](https://example.com) { #permalink }

The line above currently mathches two patterns: header permalink and markdown link with parameters.

This causes problems - translation fixer tool treats it as link and removes whitespace, then it fails with "Number of permalinks doesn't match.."

Updated pattern of markdown link to not allow that whitespace

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Mar 19, 2026

Merging this PR will not alter performance

✅ 20 untouched benchmarks


Comparing dont-fail-on-translation-verification-failure (8712af9) with master (6e5e942)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (b707bb8) during the generation of this report, so 6e5e942 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copy link
Copy Markdown
Member

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! 🚀

@tiangolo tiangolo merged commit 9960db5 into master Mar 19, 2026
39 checks passed
@tiangolo tiangolo deleted the dont-fail-on-translation-verification-failure branch March 19, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants