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

   ### Bug description
   
   I have a question about regional internationalization?
   In the screenshot, the key for storing FAB babel in cache is ('zh_Cant_TW 
'), while when [views/base. py] retrieves [bootstrap_data], it passes in zh. 
This does not match the internationalization file [translations/zh_TW]. This is 
the conclusion I obtained after debugging.
   
   ### Screenshots/recordings
   
   
![Image](https://github.com/user-attachments/assets/45f7795e-09a3-4ea3-b98c-fc7eb362fce4)
   
   
![Image](https://github.com/user-attachments/assets/0ad3cbfd-79cc-4515-b53b-aeadc5c2c0fe)
   
   
![Image](https://github.com/user-attachments/assets/6cfea26a-98b3-495d-87fd-06d5cebdff9b)
   
   ### Superset version
   
   5.0.0
   
   ### Python version
   
   3.11
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   this is my config:
   ENABLE_CORS = True
   # 开发模式使用 TALISMAN_ENABLED
   PREVENT_UNSAFE_DB_CONNECTIONS = False
   CORS_OPTIONS = {
       'supports_credentials': True,
       'allow_headers': ['*'],
       'resources': ['*'],
       'origins': ['*']
   }
   FEATURE_FLAGS = {
       'ENABLE_TEMPLATE_PROCESSING': True,
       "EMBEDDED_SUPERSET": True,
       "HORIZONTAL_FILTER_BAR": True,
       "MENU_HIDE_USER_INFO": True,
       "CHART_PLUGINS_EXPERIMENTAL": True,
       "ENABLE_JAVASCRIPT_CONTROLS": True,
       "DASHBOARD_CROSS_FILTERS": True,
       "DASHBOARD_NATIVE_FILTERS": True,
       "ALERT_REPORTS": False,
       "SSH_TUNNELING": True,
       "TAGGING_SYSTEM": True,
       "OPTIMIZE_SQL": False,
       "LOCAL_CONFIG_SYSTEM": True,
       "DYNAMIC_PLUGINS": False,
       "ENABLE_JAVASCRIPT_CONTROLS": True,
       "MENU_HIDE_USER_INFO": False,
   }
   
   LANGUAGES = {
       "en": {"flag": "us", "name": "English"},
       "zh": {"flag": "cn", "name": "简体中文"},
       "zh_TW": {"flag": "tw", "name": "繁体中文"},
       "th": {"flag": "th", "name": "Thai"},
       "vi": {"flag": "vi", "name": "Vietnamese"},
       "eo": {"flag": "eo", "name": "Esperanto"},
   }
   
   # Embedded config options
   WTF_CSRF_ENABLED = True
   # Add endpoints that need to be exempt from CSRF protection
   WTF_CSRF_EXEMPT_LIST = [
       "superset.views.core.log",
       "superset.views.core.explore_json",
       "superset.charts.data.api.data",
       "superset.dashboards.api.cache_dashboard_screenshot",
       "superset.wisdytech.token.api.get_guest_token",
       "superset.security.api.guest_token",
       "superset.extends.explore.api.get_form_key"
       "superset.extends.dashboard.api.get_form_key"
   ]
   
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] 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