estella00911 opened a new pull request, #77644:
URL: https://github.com/apache/airflow/pull/77644
## Why
Some zh-TW strings had a space between Chinese words around `{{variable}}`
and `$t()`, e.g. "標記 任務 為失敗".
## Summary
This PR:
1. Adds a spacing rule to `zh-TW.md`: decide the space by the rendered
text, not by the placeholder.
2. Removes the spaces that break that rule in zh-TW strings, such as the
keyboard shortcut descriptions, the deadline status and the map index switcher.
**Not changed:** the space next to a placeholder that can render either
English or Chinese, such as `{{type}}` ("Dag 執行" or "任務實例"), is correct and
kept. `zh-TW.md` explains this trade-off.
## Validation
- `breeze ui check-translation-completeness --language zh-TW`: 100%
(1,372/1,372).
- `prek run check-i18n-json`: passed.
- Checked each change in the UI with `breeze start-airflow --dev-mode
--load-example-dags`, except `dag:deadlineStatus.finishedEarly`, which is hard
to reproduce. It uses the same `{{duration}}` as `finishedLate`.
## Screenshots
1. Keyboard shortcuts (Shift + ?) after the change:
<img width="2698" height="1424" alt="截圖 2026-11-26 下午11 00 50"
src="https://github.com/user-attachments/assets/f1386a87-fe1d-4bcc-9321-815d8737e6b9"
/>
2. Deadline status on a Dag run page:
<img width="2704" height="854" alt="截圖 2026-11-26 下午10 50 07"
src="https://github.com/user-attachments/assets/b73b29f1-e35f-4d14-b8ee-edea86e9fb65"
/>
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 5.5)
Generated-by: Claude Code (Opus 5.5) following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]