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.
1 parent f83efaf commit a57e299Copy full SHA for a57e299
src/views/includes/macros.njk
@@ -80,14 +80,14 @@
80
{%- set result = [] -%}
81
82
{# Temporary while waiting for welsh translations - need to handle 'WELSH -' keyword #}
83
- {%- if words[0] === "WELSH" -%}
84
- {%- set result = result.concat(words[0]) -%}
85
- {%- set result = result.concat(words[1]) -%}
+ {%- if words[0] === "WELSH" -%}
86
{%- set subset = [] -%}
87
{%- set index = 0 %}
88
{%- for word in words -%}
89
{%- if index > 1 -%}
90
{% set subset = (subset.push(word), subset) %}
+ {%- else -%}
+ {%- set result = result.concat(word) -%}
91
{%- endif -%}
92
{%- set index = index + 1 %}
93
{%- endfor -%}
0 commit comments