Skip to content

Commit

Permalink
docs: switch language based on current path
Browse files Browse the repository at this point in the history
  • Loading branch information
kecrily committed Dec 20, 2022
1 parent 6151d9e commit 366fce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/_includes/components/language-switcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<select name="language selector" id="language-select" aria-describedby="language-infobox"
class="c-custom-select switcher__select">
{% for key, other_site in sites %}
<option value="{{ other_site.language.code }}" data-url="https://{{ other_site.hostname }}" {% if
<option value="{{ other_site.language.code }}" data-url="https://{{ other_site.hostname }}/docs{{ page.url }}" {% if
site.language.code==other_site.language.code %} selected {% endif %}>
{{ other_site.language.flag }} {{ other_site.language.name }}
</option>
Expand Down

0 comments on commit 366fce2

Please sign in to comment.