Skip to content

🔨 Update translations script #13968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

YuriiMotov
Copy link
Contributor

@YuriiMotov YuriiMotov commented Aug 4, 2025

  • Add the examples of how to handle code blocks to preserve the content from being translated
  • Add explicit encoding
  • Add instructions to generate fixed anchors for headers (tmp, needs more testing)

YuriiMotov and others added 2 commits August 4, 2025 18:00
Otherwise it raises on my Windows, as it tries to use the system encoding, which is not utf-8.
Copy link

@nilslindemann nilslindemann left a comment

Choose a reason for hiding this comment

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

Good 👍

nilslindemann added a commit to nilslindemann/fastapi that referenced this pull request Aug 5, 2025
see fastapi@da9659b

This adds anchors to headings, so that links with hashes stay in the translation.
nilslindemann added a commit to nilslindemann/fastapi that referenced this pull request Aug 5, 2025
Before, it sometimes still wrapped the translation with "```markdown" and "```". Now not anymore.

Yurii, If you agree with that change, please apply to fastapi#13968 (update-translations-prompt)
@nilslindemann
Copy link

Hi Yurii, good addition! I tested with the recent German translations and it works great! See here (the commits from Aug 5).

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