From 8341338c7793ed3e6794d46c198af54f945e98fa Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Wed, 26 Jun 2024 10:58:30 +0800 Subject: [PATCH] PR feedback: fix translation key syntax --- features/bootstrap/MfaContext.php | 1 + .../material/themes/material/mfa/prompt-for-mfa-manager.twig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/features/bootstrap/MfaContext.php b/features/bootstrap/MfaContext.php index 664b159..6ea146d 100644 --- a/features/bootstrap/MfaContext.php +++ b/features/bootstrap/MfaContext.php @@ -661,6 +661,7 @@ public function iShouldSeeAPromptForAManagerRescueCode() $pageHtml = $page->getHtml(); Assert::assertContains('Ask Your Recovery Contact for Help', $pageHtml); Assert::assertContains('Enter code', $pageHtml); + Assert::assertContains('m*****r@e******.c**', $pageHtml); } /** diff --git a/modules/material/themes/material/mfa/prompt-for-mfa-manager.twig b/modules/material/themes/material/mfa/prompt-for-mfa-manager.twig index dfe3075..aa464f7 100644 --- a/modules/material/themes/material/mfa/prompt-for-mfa-manager.twig +++ b/modules/material/themes/material/mfa/prompt-for-mfa-manager.twig @@ -29,7 +29,7 @@
- {{ '{mfa:manager_sent}'|trans({'{managerEmail': managerEmail}) }} + {{ '{mfa:manager_sent}'|trans({'%managerEmail%': managerEmail}) }}