dosubot[bot] commented on issue #31370:
URL: https://github.com/apache/superset/issues/31370#issuecomment-2530743178
<!-- Answer -->
To change the language in Apache Superset without using Docker, you need to
modify the `BABEL_DEFAULT_LOCALE` setting in the `superset/config.py` file. For
example, to change the language to Spanish, set:
```python
BABEL_DEFAULT_LOCALE = "es"
```
Ensure that the language you choose is included in the `LANGUAGES`
dictionary in the same configuration file. If the language is not listed, you
may need to add it. Here are the available language options:
```python
LANGUAGES = {
"en": {"flag": "us", "name": "English"},
"es": {"flag": "es", "name": "Spanish"},
"it": {"flag": "it", "name": "Italian"},
"fr": {"flag": "fr", "name": "French"},
"zh": {"flag": "cn", "name": "Chinese"},
"zh_TW": {"flag": "tw", "name": "Traditional Chinese"},
"ja": {"flag": "jp", "name": "Japanese"},
"de": {"flag": "de", "name": "German"},
"pt": {"flag": "pt", "name": "Portuguese"},
"pt_BR": {"flag": "br", "name": "Brazilian Portuguese"},
"ru": {"flag": "ru", "name": "Russian"},
"ko": {"flag": "kr", "name": "Korean"},
"sk": {"flag": "sk", "name": "Slovak"},
"sl": {"flag": "si", "name": "Slovenian"},
"nl": {"flag": "nl", "name": "Dutch"},
"uk": {"flag": "uk", "name": "Ukrainian"},
}
```
If you want to enable a language selection dropdown in the UI, ensure that
the `LANGUAGES` dictionary is populated with more than one language option
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/config.py)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/145a1b82-cdde-44fb-a71d-05735799c753?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/145a1b82-cdde-44fb-a71d-05735799c753?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/145a1b82-cdde-44fb-a71d-05735799c753?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/145a1b82-cdde-44fb-a71d-05735799c753?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/145a1b82-cdde-44fb-a71d-05735799c753?feedback_type=hallucination)
|
[Other](https://app.dosu.dev/response-feedback/145a1b82-cdde-44fb-a71d-05735799c753?feedback_type=other)</sup>
--
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]