Use lang attributes in locale switcher

This commit is contained in:
Pierre Rudloff 2017-05-31 16:35:37 +02:00
parent 2add291023
commit 6905877e36
1 changed files with 1 additions and 1 deletions

View File

@ -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}