Skip to content

Commit bbeb02b

Browse files
author
lenvanessen
authored
Merge pull request #153 from nestordedios/patch-3
Add default twig filter on locales
2 parents d59eb52 + 64f1ebf commit bbeb02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/frontend/_localeswitcher.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ul{% if classes %} class="{{ classes }}"{% endif %}>
2-
{% for locale in locales %}
2+
{% for locale in locales|default([]) %}
33
<li{% if locale.get('active') %} class="active"{% endif %}>
44
<a title="{{ locale.get('label') }}" href="{{ locale.get('url') }}">
55
{{ locale.get('label') }}

0 commit comments

Comments
 (0)