Language codes are now normalized¶
The following language codes are now normalized to be lowercase and use a dash as a separator instead of an underscore:
nb_NOis nownb-nopt_BRis nowpt-bres_MXis nowes-mxuk_UAis nowuk-uazh_CNis nowzh-cnzh_TWis nowzh-tw
This change affects the following areas:
- API:
When creating or updating projects, you must now use the new normalized language codes.
The API responses will include the new normalized language codes.
- Docs and download URLs:
Previous URLs from projects using the old language codes will redirect to the new normalized language codes. For example:
https://docs.readthedocs/pt_BR/latest/will redirect tohttps://docs.readthedocs/pt-br/latest/.https://docs.readthedocs/_/downloads/pt_BR/latest/pdf/will redirect tohttps://docs.readthedocs/_/downloads/pt-br/latest/pdf/.
- Redirects:
If you had redirects using the old language codes in the
From URLfield, they were automatically updated to use the new normalized language codes.
This change was implemented to ensure more readable and clean URLs.