Skip to content

Commit

Permalink
Merge pull request #6 from companieshouse/feature/dact-language-toggl…
Browse files Browse the repository at this point in the history
…e-show-selected

dact show selected language
  • Loading branch information
AndreKramer7654 authored Mar 28, 2024
2 parents 70c0a14 + 15be55e commit 17ffc23
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions templates/locales-banner.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ It receives:
<ul class="govuk-language-select__list">
{% if languageEnabled %}
{% for l in languages %}
<li class="govuk-language-select__list-item">
<a href="{{lang2url.addLangToUrl(currentUrl, l.IsoCode, true)}}" lang={{l.IsoCode}} rel="alternate" class="govuk-link" >
<span>{{l.Name}}</span>
</a>
</li>
<li class="govuk-language-select__list-item">
{% if lang and lang == l.IsoCode %}
<span class="govuk-body-s govuk-!-margin-2">{{l.Name}}</span>
{% else %}
<a href="{{lang2url.addLangToUrl(currentUrl, l.IsoCode, true)}}" lang={{l.IsoCode}} rel="alternate" class="govuk-link govuk-!-margin-2" >
<span>{{l.Name}}</span>
</a>
{% endif %}
</li>
{% endfor %}
{% endif %}
</ul>
Expand Down

0 comments on commit 17ffc23

Please sign in to comment.