diff --git a/src/patterns/04-components/card/card-elements/_date.twig b/src/patterns/04-components/card/card-elements/_date.twig index 8766c3b9ea8a8db8885db1fea10e171c7bc79f93..cd48aed348fd724e79f1e17c96b172779b859faf 100644 --- a/src/patterns/04-components/card/card-elements/_date.twig +++ b/src/patterns/04-components/card/card-elements/_date.twig @@ -52,28 +52,28 @@ {% include '@components/date/_date.twig' with { 'date_format': 'long', 'date': d.start_date, - 'translated': d['translated']['start_date'][date_format] ?? null, + 'translated': d['translated']['start_date']['long'] ?? null, 'timezone': d.timezone, } %} ({{ d['translated']['all_day'] }}) {% else %} {% include '@components/date/_date.twig' with { 'date_format': 'long_with_time', 'date': d.start_date, - 'translated': d['translated']['start_date'][date_format] ?? null, + 'translated': d['translated']['start_date']['long_with_time'] ?? null, 'timezone': d.timezone, } %} - {% include '@components/date/_date.twig' with { 'date_format': 'time_only', 'date': d.end_date, - 'translated': d['translated']['start_date'][date_format] ?? null, + 'translated': d['translated']['start_date']['time_only'] ?? null, 'timezone': d.timezone, } %} {% include '@components/date/_date.twig' with { 'date_format': 'timezone', 'date': d.start_date, - 'translated': d['translated']['start_date'][date_format] ?? null, + 'translated': d['translated']['start_date']['timezone'] ?? null, 'timezone': d.timezone, } %} {% endif %} @@ -83,35 +83,35 @@ {% include '@components/date/_date.twig' with { 'date_format': 'long', 'date': d.start_date, - 'translated': d['translated']['start_date'][date_format] ?? null, + 'translated': d['translated']['start_date']['long'] ?? null, 'timezone': d.timezone, } %} - {% include '@components/date/_date.twig' with { 'date_format': 'long', 'date': d.end_date, - 'translated': d['translated']['end_date'][date_format] ?? null, + 'translated': d['translated']['end_date']['long'] ?? null, 'timezone': d.timezone, } %} ({{ d['translated']['all_day'] }}) {% else %} {% include '@components/date/_date.twig' with { 'date_format': 'long_with_time', 'date': d.start_date, - 'translated': d['translated']['start_date'][date_format] ?? null, + 'translated': d['translated']['start_date']['long_with_time'] ?? null, 'timezone': d.timezone, } %} - {% include '@components/date/_date.twig' with { 'date_format': 'long_with_time', 'date': d.end_date, - 'translated': d['translated']['end_date'][date_format] ?? null, + 'translated': d['translated']['end_date']['long_with_time'] ?? null, 'timezone': d.timezone, } %} {% include '@components/date/_date.twig' with { 'date_format': 'timezone', 'date': d.start_date, - 'translated': d['translated']['start_date'][date_format] ?? null, + 'translated': d['translated']['start_date']['timezone'] ?? null, 'timezone': d.timezone, } %} {% endif %}