AliGouta opened a new pull request, #40223:
URL: https://github.com/apache/superset/pull/40223

   ### SUMMARY
   This PR should fix the translation to other languages many static labels and 
descriptions in the UI.
   
   Fixes SC [#40207](https://github.com/apache/superset/issues/40207) Partial 
UI Translation for Superset Components.
   
   Root cause: labels and descriptions are not translated in controlPanels. 
Labels in filter config forms are not also forcibly translated because t() is 
not called.
   
   Fix: Call of t() before rendering in the UI which makes translation of 
description and labels. Also, French translations is poorly done. We extend the 
translation and fix many entries.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   Before:
   
   <img width="1685" height="282" alt="before" 
src="https://github.com/user-attachments/assets/de20596a-ae46-466d-b6cf-0f843f9ad869";
 />
   
   After:
   
   <img width="1740" height="288" alt="after" 
src="https://github.com/user-attachments/assets/cacce1f0-ad9e-4932-8bae-f6eb58abbb1c";
 />
   
   
   ### TESTING INSTRUCTIONS
   Building a new image:
   
   `docker build --build-arg BUILD_TRANSLATIONS=true -t superset:fix-40207 .`
   
   Deploy and run the image
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ X] Has associated issue: 40207
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to