{% comment %} Language switcher for translated docs pages. Renders a dropdown-style link list showing available translations of the current page. Include this in any page or layout that should offer locale switching. Usage: {% include language_switcher.html %} Logic: - Derives the current page's relative path within its section - Checks if translated versions exist in locale subdirectories - Shows a globe icon with available locale links {% endcomment %} {% assign current_path = page.path %} {% assign locales = site.data.locales %} {% if locales and current_path %}
🌐 English
{% endif %}