You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "baha-bouali (via GitHub)" <gi...@apache.org> on 2026/08/31 01:05:11 UTC

[I] UI: durations and relative times render in English in all non-English locales (dayjs.locale() is never set) [airflow]

baha-bouali opened a new issue, #72307:
URL: https://github.com/apache/airflow/issues/72307

   ### Under which category would you file this issue?
   
   Airflow Core
   
   ### Apache Airflow version
   
   3.2.0
   
   ### What happened and how to reproduce it?
   
   The Dag deadline tooltip is only half translated. The sentence template and the
   reference point come out in the selected language, but the interval stays in
   English **"2 hours"** in the middle of an otherwise translated sentence.
   
   Same tooltip, same deadline, four languages:
   
   #### English (correct)
   
   <img width="451" height="131" alt="Image" src="https://github.com/user-attachments/assets/9325c65a-acac-4935-bef2-05fe989c764b" />
   
   #### Arabic
   
   <img width="367" height="106" alt="Image" src="https://github.com/user-attachments/assets/67ea44c1-6c31-4ba9-9509-d081fda41cd2" />
   
   #### French
   
   <img width="577" height="241" alt="Image" src="https://github.com/user-attachments/assets/e3d49006-b744-4b26-bcdd-8c4c2a594acf" />
   
   #### German
   
   <img width="485" height="136" alt="Image" src="https://github.com/user-attachments/assets/6192b4c5-67c3-4938-abbb-dc1a50f431a7" />
   
   
   
   ### How to reproduce
   
   1. Define a Dag with a deadline alert, e.g. a `DagRunQueuedAtDeadline` with a
      2-hour interval.
   2. Switch the UI language to Arabic, French, or any non-English language.
   3. Open the Dag page and hover the deadline badge in the header.
   
   
   
   ### What you think should happen instead?
   
   _No response_
   
   ### Operating System
   
   Ubuntu 24.04.4 LTS
   
   ### Deployment
   
   None
   
   ### Apache Airflow Provider(s)
   
   _No response_
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Official Helm Chart version
   
   Not Applicable
   
   ### Kubernetes Version
   
   _No response_
   
   ### Helm Chart configuration
   
   _No response_
   
   ### Docker Image customizations
   
   _No response_
   
   ### Anything else?
   
   This is not a missing translation key, which is why the translation-completeness
   checks never flagged it. The sentence is assembled from two separate catalogues:
   the template and reference come from i18next, but the interval comes from dayjs's
   own locale data. The UI never calls `dayjs.locale()`, so dayjs stays on its
   built-in English regardless of the selected language.
   
   The same root cause affects every relative time in the UI, e.g. the "Next Run"
   value on the Dags list.
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] UI: durations and relative times render in English in all non-English locales (dayjs.locale() is never set) [airflow]

Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi closed issue #72307: UI: durations and relative times render in English in all non-English locales (dayjs.locale() is never set)
URL: https://github.com/apache/airflow/issues/72307


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org