diff --git a/templates/paragraphs/paragraph--news-list.html.twig b/templates/paragraphs/paragraph--news-list.html.twig index 1deea510e..36118bd24 100644 --- a/templates/paragraphs/paragraph--news-list.html.twig +++ b/templates/paragraphs/paragraph--news-list.html.twig @@ -8,9 +8,13 @@ %} {% block component_content %} -
+ {% if content.news_list %} + + {% else %} +{{ 'No related news.'|t({}, {'context': 'When newslist component does not have any news to list'}) }}
+ {% endif %} {% set link_title %} diff --git a/translations/fi.po b/translations/fi.po index 19bd0af00..0e0c4ae5c 100644 --- a/translations/fi.po +++ b/translations/fi.po @@ -311,3 +311,7 @@ msgstr "Pikalinkit" msgctxt "TPR unit daycare distance" msgid "Distance" msgstr "Etäisyys" + +msgctxt "When newslist component does not have any news to list" +msgid "No related news." +msgstr "Ei uutisia tästä aiheesta." diff --git a/translations/sv.po b/translations/sv.po index 53f5c3499..f90dae352 100644 --- a/translations/sv.po +++ b/translations/sv.po @@ -308,3 +308,7 @@ msgstr "Snabblänkar" msgctxt "TPR unit daycare distance" msgid "Distance" msgstr "Distans" + +msgctxt "When newslist component does not have any news to list" +msgid "No related news." +msgstr "Inga nyheter i ämnet."