innovark37 opened a new issue, #35569:
URL: https://github.com/apache/superset/issues/35569

   ### Bug description
   
   **Steps to reproduce**
   1. Deploy the Docker version of Superset based on 6.0.0rc2 (same on the 
master-branch build version).
   2. In config.py set the LANGUAGES variables, for example:
   ```
   BABEL_DEFAULT_LOCALE = "ru"
   
   LANGUAGES = {
     "ru": {"flag": "ru", "name": "Русский"},
     "en": {"flag": "us", "name": "English"}
   }
   ```
   3. Compile translations as described 
[here](https://superset.apache.org/docs/6.0.0/contributing/howtos#applying-translations)
   ```
   # Install dependencies if you haven't already
   cd superset-frontend/ && npm ci
   # Compile translations for the frontend
   npm run build-translation
   
   # inside the project root
   cd ../
   pybabel compile -d superset/translations -l ru
   ```
   3. Open Superset. Observe missing translations (e.g. Header, "Settings" 
menu,"All" tab on welcome page, control panel while editing chart).
   
   **Expected behavior**
   All translations are applied in UI as it was in Superset 5.0.0.
   
   **Actual behavior**
   The user interface is only partially translated.
   
   **Reason for the bug**
   The regression appears to be introduced in PR 
https://github.com/apache/superset/pull/34119, where language pack  is fetching 
asynchronously.
   
   ### Screenshots/recordings
   
   <img width="1903" height="908" alt="Image" 
src="https://github.com/user-attachments/assets/4be021ec-3e4e-4c56-9554-e1957e7acaea";
 />
   
   <img width="1912" height="758" alt="Image" 
src="https://github.com/user-attachments/assets/988ebdae-9552-4edd-8e42-bb600b8c18d3";
 />
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.11
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


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