diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml index bb23fa32d9..efa052c7a2 100644 --- a/.github/workflows/translate.yml +++ b/.github/workflows/translate.yml @@ -1,8 +1,8 @@ name: Translate on: - # schedule: - # - cron: "0 5 15 * *" # Run at 05:00 on the 15 of every month + schedule: + - cron: "0 5 1,15 * *" # Run at 05:00 on the 1st and 15th of every month workflow_dispatch: inputs: @@ -119,5 +119,5 @@ jobs: LANGUAGE: ${{ matrix.lang }} EN_PATH: ${{ github.event.inputs.en_path }} COMMAND: ${{ matrix.command }} - COMMIT_IN_PLACE: ${{ github.event.inputs.commit_in_place }} + COMMIT_IN_PLACE: ${{ github.event.inputs.commit_in_place == 'true' && 'true' || '' }} MAX: ${{ github.event.inputs.max }} diff --git a/docs/en/docs/release-notes.md b/docs/en/docs/release-notes.md index eaf69b6f11..a89a72ae5b 100644 --- a/docs/en/docs/release-notes.md +++ b/docs/en/docs/release-notes.md @@ -20,6 +20,9 @@ hide: ### Internal +* 🔨 Fix `commit_in_place` passed via env variable in `translate.yml` workflow. PR [#15151](https://github.com/fastapi/fastapi/pull/15151) by [@YuriiMotov](https://github.com/YuriiMotov). +* 🔨 Update translation general prompt to enforce link style in translation matches the original link style. PR [#15148](https://github.com/fastapi/fastapi/pull/15148) by [@YuriiMotov](https://github.com/YuriiMotov). +* 👷 Re-enable translation workflow run by cron in CI (twice a month). PR [#15145](https://github.com/fastapi/fastapi/pull/15145) by [@YuriiMotov](https://github.com/YuriiMotov). * 👷 Add `ty` to precommit. PR [#15091](https://github.com/fastapi/fastapi/pull/15091) by [@svlandeg](https://github.com/svlandeg). * ⬆ Bump dorny/paths-filter from 3 to 4. PR [#15106](https://github.com/fastapi/fastapi/pull/15106) by [@dependabot[bot]](https://github.com/apps/dependabot). * ⬆ Bump cairosvg from 2.8.2 to 2.9.0. PR [#15108](https://github.com/fastapi/fastapi/pull/15108) by [@dependabot[bot]](https://github.com/apps/dependabot). diff --git a/scripts/general-llm-prompt.md b/scripts/general-llm-prompt.md index 23926bd8e9..cfad6ff43d 100644 --- a/scripts/general-llm-prompt.md +++ b/scripts/general-llm-prompt.md @@ -349,6 +349,8 @@ Good translation (German) - URL stays like in the English source. Erstelle eine [Virtuelle Umgebung](../virtual-environments.md){.internal-link target=_blank} ``` +**Important**: Always match the link syntax used in the English source document. If the English source uses Markdown-style links (`[text](url)`), the translation must also use Markdown-style links. If the English source uses HTML-style links (`text`), the translation must also use HTML-style links. The link format in the translation must always mirror the link format in the English source. + ### HTML abbr elements Translate HTML abbr elements (`text`) as follows: