First Check
Commit to Help
Example Code
`mkdocs.yml`:
alternate:
- link: /
name: en - English
- link: /az/
name: az
- link: /de/
name: de
- link: /es/
name: es - español
- link: /fa/
name: fa
- link: /fr/
name: fr - français
- link: /id/
name: id
- link: /it/
name: it - italiano
- link: /ja/
name: ja - 日本語
- link: /ko/
name: ko - 한국어
- link: /nl/
name: nl
- link: /pl/
name: pl
- link: /pt/
name: pt - português
- link: /ru/
name: ru - русский язык
- link: /sq/
name: sq - shqip
- link: /tr/
name: tr - Türkçe
- link: /uk/
name: uk - українська мова
- link: /zh/
name: zh - 汉语
Description
The language menu in the docs contains the names of the language only for some of the available languages, while the rest only have the language code. This looks a little weird, and some developers might not even know what language code their language of choice has. Having the name specified for all languages would be much clearer.

Wanted Solution
- The
mkdocs.yml files should be updated to include the name of every available language.
- The command that generates a new language (e.g.
python ./scripts/docs.py new-lang sv) should include a second parameter where a name can be specified (python ./scripts/docs.py new-lang sv svenska), or the instructions for adding a new translation (https://fastapi.tiangolo.com/contributing/#new-language) should at least describe how to add a name manually.
Wanted Code
- link: /
name: en - English
- link: /az/
name: az - Azərbaycanca
- link: /de/
name: de - Deutsch
etc.
Alternatives
No response
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.78.0
Python Version
3.10.4
Additional Context
No response
First Check
Commit to Help
Example Code
Description
The language menu in the docs contains the names of the language only for some of the available languages, while the rest only have the language code. This looks a little weird, and some developers might not even know what language code their language of choice has. Having the name specified for all languages would be much clearer.
Wanted Solution
mkdocs.ymlfiles should be updated to include the name of every available language.python ./scripts/docs.py new-lang sv) should include a second parameter where a name can be specified (python ./scripts/docs.py new-lang sv svenska), or the instructions for adding a new translation (https://fastapi.tiangolo.com/contributing/#new-language) should at least describe how to add a name manually.Wanted Code
Alternatives
No response
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.78.0
Python Version
3.10.4
Additional Context
No response