Skip to content

Commit a57e299

Browse files
committed
LP-909 macro change
1 parent f83efaf commit a57e299

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/includes/macros.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@
8080
{%- set result = [] -%}
8181

8282
{# 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]) -%}
83+
{%- if words[0] === "WELSH" -%}
8684
{%- set subset = [] -%}
8785
{%- set index = 0 %}
8886
{%- for word in words -%}
8987
{%- if index > 1 -%}
9088
{% set subset = (subset.push(word), subset) %}
89+
{%- else -%}
90+
{%- set result = result.concat(word) -%}
9191
{%- endif -%}
9292
{%- set index = index + 1 %}
9393
{%- endfor -%}

0 commit comments

Comments
 (0)