From 29334e46eefd6c581c4dc525ec813142fa9d36cc Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:32:28 -0700 Subject: [PATCH] refactor(client): move punctuation mark to translation string (#55798) --- client/i18n/locales/english/translations.json | 2 +- .../templates/Challenges/components/reset-modal.tsx | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index 8588047ee34..bb6971e6e4b 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -408,7 +408,7 @@ "rsa-forum": "Before making a new post please <0>check if your question has already been answered on the forum.", "reset": "Reset this lesson?", "reset-warn": "Are you sure you wish to reset this lesson? The editors and tests will be reset.", - "reset-warn-2": "This cannot be undone", + "reset-warn-2": "This cannot be undone.", "scrimba-tip": "Tip: If the mini-browser is covering the code, click and drag to move it. Also, feel free to stop and edit the code in the video at any time.", "chal-preview": "Challenge Preview", "donation-record-not-found": "Your donation record has not been found.", diff --git a/client/src/templates/Challenges/components/reset-modal.tsx b/client/src/templates/Challenges/components/reset-modal.tsx index 8cab827b376..9943b37e505 100644 --- a/client/src/templates/Challenges/components/reset-modal.tsx +++ b/client/src/templates/Challenges/components/reset-modal.tsx @@ -45,13 +45,11 @@ function ResetModal({ reset, close, isOpen }: ResetModalProps): JSX.Element { {t('learn.reset')} - -
-

{t('learn.reset-warn')}

-

- {t('learn.reset-warn-2')}. -

-
+ +

{t('learn.reset-warn')}

+

+ {t('learn.reset-warn-2')} +