diff --git a/themes/custom-learn2-dark/templates/partials/langswitcher.html.twig b/themes/custom-learn2-dark/templates/partials/langswitcher.html.twig
new file mode 100644
index 0000000..3b44b1f
--- /dev/null
+++ b/themes/custom-learn2-dark/templates/partials/langswitcher.html.twig
@@ -0,0 +1,33 @@
+
+ {% set display_format = display_format ?? config.get('plugins.langswitcher.language_display', 'long') %}
+
+ {% for language in langswitcher.languages %}
+ {% set active_class = '' %}
+ {% set show_language = true %}
+ {% if language == langswitcher.current %}
+ {% set active_class = 'active' %}
+ {% endif %}
+ {% if langswitcher.translated_routes[language] %}
+ {% set lang_url = langswitcher.translated_routes[language] ~ page.urlExtension %}
+ {% else %}
+ {% set base_lang_url = base_url_simple ~ grav.language.getLanguageURLPrefix(language) %}
+ {% set lang_url = base_lang_url ~ langswitcher.page_route ~ page.urlExtension %}
+ {% endif %}
+ {% set untranslated_pages_behavior = grav.config.plugins.langswitcher.untranslated_pages_behavior %}
+ {% if untranslated_pages_behavior != 'none' %}
+ {% set translated_page = langswitcher.translated_pages[language] %}
+ {% if (not translated_page) or (not translated_page.published) %}
+ {% if untranslated_pages_behavior == 'redirect' %}
+ {% set lang_url = url('/') %}
+ {% elseif untranslated_pages_behavior == 'hide' %}
+ {% set show_language = false %}
+ {% endif %}
+ {% endif %}
+ {% endif %}
+
+ {% if show_language %}
+ - {% include 'partials/langswitcher-' ~ display_format ~ '.html.twig' %}
+ {% endif %}
+
+ {% endfor %}
+
diff --git a/themes/custom-learn2-dark/templates/partials/language-selector.html.twig b/themes/custom-learn2-dark/templates/partials/language-selector.html.twig
deleted file mode 100644
index 7e19f0e..0000000
--- a/themes/custom-learn2-dark/templates/partials/language-selector.html.twig
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
diff --git a/themes/custom-learn2-dark/templates/partials/sidebar.html.twig b/themes/custom-learn2-dark/templates/partials/sidebar.html.twig
index 21cfdf8..b055e45 100644
--- a/themes/custom-learn2-dark/templates/partials/sidebar.html.twig
+++ b/themes/custom-learn2-dark/templates/partials/sidebar.html.twig
@@ -61,7 +61,7 @@
{{ 'THEME_LEARN2_CLEAR_HISTORY'|t }}
- {% include 'partials/language-selector.html.twig' %}
+ {% include 'partials/langswitcher.html.twig' %}