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)}
|
||||
<ul class="locales">
|
||||
{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}
|
||||
</ul>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in a new issue