We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d59eb52 + 64f1ebf commit bbeb02bCopy full SHA for bbeb02b
templates/frontend/_localeswitcher.twig
@@ -1,5 +1,5 @@
1
<ul{% if classes %} class="{{ classes }}"{% endif %}>
2
- {% for locale in locales %}
+ {% for locale in locales|default([]) %}
3
<li{% if locale.get('active') %} class="active"{% endif %}>
4
<a title="{{ locale.get('label') }}" href="{{ locale.get('url') }}">
5
{{ locale.get('label') }}
0 commit comments