diff --git a/sphinx_rtd_theme/static/js/versions.js_t b/sphinx_rtd_theme/static/js/versions.js_t index fd8d91b0d..65bf148a2 100644 --- a/sphinx_rtd_theme/static/js/versions.js_t +++ b/sphinx_rtd_theme/static/js/versions.js_t @@ -8,10 +8,14 @@ if (themeFlyoutDisplay === "attached") { return ""; } + // Insert the current language to the options on the selector + let languages = config.projects.translations.concat(config.projects.current); + languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name)); + const languagesHTML = `
{{ _('Languages') }}
- ${config.projects.translations + ${languages .map( (translation) => `