From 4e21f669f6a2d952c840fcb8516faf76c17bce28 Mon Sep 17 00:00:00 2001 From: Manuel Date: Tue, 22 Aug 2023 21:55:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20Translate=20error=20alert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/manage/users/create.json | 3 ++- src/components/Manage/User/Create/review-input-step.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/locales/en/manage/users/create.json b/public/locales/en/manage/users/create.json index dcf8d4fe6..129acdf20 100644 --- a/public/locales/en/manage/users/create.json +++ b/public/locales/en/manage/users/create.json @@ -35,7 +35,8 @@ }, "notSet": "Not set", "valid": "Valid" - } + }, + "failed": "User creation has failed: {{error}}" }, "completed": { "alert": { diff --git a/src/components/Manage/User/Create/review-input-step.tsx b/src/components/Manage/User/Create/review-input-step.tsx index 50cab5dea..3395d62b6 100644 --- a/src/components/Manage/User/Create/review-input-step.tsx +++ b/src/components/Manage/User/Create/review-input-step.tsx @@ -91,7 +91,7 @@ export const ReviewInputStep = ({ values, prevStep, nextStep }: ReviewInputStepP {isError && ( } mb="lg"> - User creation has failed: {error.message} + {t('steps.finish.failed', { error: error.message })} )}