Use lang attributes in locale switcher
This commit is contained in:
parent
2add291023
commit
6905877e36
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
{if isset($supportedLocales)}
|
{if isset($supportedLocales)}
|
||||||
<ul class="locales">
|
<ul class="locales">
|
||||||
{foreach $supportedLocales as $supportedLocale}
|
{foreach $supportedLocales as $supportedLocale}
|
||||||
<li><a href="{path_for name='locale' data=['locale'=>$supportedLocale->getIso15897()]}">{$supportedLocale->getCountry()->getEmoji()} {$supportedLocale->getFullName()}</a></li>
|
<li><a hreflang="{$supportedLocale->getBcp47()}" lang="{$supportedLocale->getBcp47()}" href="{path_for name='locale' data=['locale'=>$supportedLocale->getIso15897()]}">{$supportedLocale->getCountry()->getEmoji()} {$supportedLocale->getFullName()}</a></li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in a new issue