From 1a523202565c234688e1696dee87b37fdab34da6 Mon Sep 17 00:00:00 2001 From: Angela Tran Date: Wed, 20 Mar 2024 18:10:16 +0000 Subject: [PATCH] refactor: simply pass translated value into modal-trigger no refactor to modal-trigger needed --- .../eligibility/includes/selection-label--calfresh.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benefits/eligibility/templates/eligibility/includes/selection-label--calfresh.html b/benefits/eligibility/templates/eligibility/includes/selection-label--calfresh.html index e5e3d6e88..e44fe3376 100644 --- a/benefits/eligibility/templates/eligibility/includes/selection-label--calfresh.html +++ b/benefits/eligibility/templates/eligibility/includes/selection-label--calfresh.html @@ -7,8 +7,8 @@ {% block description %} {% translate "You must have" %} - {% comment %} modal-trigger needs to be refactored to support translating the text {% endcomment %} - {% include "core/includes/modal-trigger.html" with modal="modal--calfresh" text="recently received CalFresh funds" period=True %} + {% translate "recently received CalFresh funds" as calfresh_modal_link %} + {% include "core/includes/modal-trigger.html" with modal="modal--calfresh" text=calfresh_modal_link period=True %} {% include "eligibility/includes/modal--calfresh.html" with id="modal--calfresh" size="modal-lg" header="p-md-2 p-3" body="pb-md-3 mb-md-3 mx-md-3 py-0 pt-0 absolute-top" %} {% translate "This transit benefit will remain active for one year. You will need to verify your identity with" %}