diff --git a/lib/content-services/src/lib/i18n/en.json b/lib/content-services/src/lib/i18n/en.json index 08656fbdd3..2375b18917 100644 --- a/lib/content-services/src/lib/i18n/en.json +++ b/lib/content-services/src/lib/i18n/en.json @@ -446,11 +446,11 @@ "IN_LAST": "Value required", "START_DATE": { "REQUIRED": "Start Date required", - "INVALID_FORMAT": "Start Date invalid" + "INVALID_FORMAT": "Start Date invalid. The date must be in the format '{{ requiredFormat }}'" }, "END_DATE": { "REQUIRED": "End Date required", - "INVALID_FORMAT": "End Date invalid" + "INVALID_FORMAT": "End Date invalid. The date must be in the format '{{ requiredFormat }}'" } }, "ARIA_LABEL": { diff --git a/lib/content-services/src/lib/search/components/search-date-range-tabbed/search-date-range/search-date-range.component.html b/lib/content-services/src/lib/search/components/search-date-range-tabbed/search-date-range/search-date-range.component.html index 8275e3516f..e2ff26d43e 100644 --- a/lib/content-services/src/lib/search/components/search-date-range-tabbed/search-date-range/search-date-range.component.html +++ b/lib/content-services/src/lib/search/components/search-date-range-tabbed/search-date-range/search-date-range.component.html @@ -42,9 +42,9 @@ - {{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.START_DATE.INVALID_FORMAT' | translate }} + {{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.START_DATE.INVALID_FORMAT' | translate: { requiredFormat: dateFormat } }} {{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.START_DATE.REQUIRED' | translate }} - {{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.END_DATE.INVALID_FORMAT' | translate }} + {{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.END_DATE.INVALID_FORMAT' | translate : { requiredFormat: dateFormat } }} {{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.END_DATE.REQUIRED' | translate }}