From d7027fec087bd2d864ea60a9b73bf95ba5951f2c Mon Sep 17 00:00:00 2001 From: Jethro Mak <88681329+Jethro-M@users.noreply.github.com> Date: Mon, 12 Aug 2024 13:00:27 -0400 Subject: [PATCH] [PLAT-14892] Update PITR configuration step text Summary: This diff makes minor text changes to the PITR configure step. We shortened the error message text for brevity. Test Plan: -Create xCluster DR config and validate the new text changes. {F275198} Reviewers: ghodge, rmadhavan, cwang, hzare Reviewed By: ghodge Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D37219 --- .../createConfig/ConfigurePitrStep.tsx | 8 ++++---- managed/ui/src/translations/en.json | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/managed/ui/src/components/xcluster/disasterRecovery/createConfig/ConfigurePitrStep.tsx b/managed/ui/src/components/xcluster/disasterRecovery/createConfig/ConfigurePitrStep.tsx index 3e464c398108..42836ef1aeb3 100644 --- a/managed/ui/src/components/xcluster/disasterRecovery/createConfig/ConfigurePitrStep.tsx +++ b/managed/ui/src/components/xcluster/disasterRecovery/createConfig/ConfigurePitrStep.tsx @@ -36,18 +36,18 @@ export const ConfigurePitrStep = ({ isFormDisabled }: ConfigureAlertStepProps) = const UNIT_OPTIONS: ReactSelectOption[] = [ { - label: t('second', { keyPrefix: I18N_DURATION_KEY_PREFIX }), + label: t('seconds', { keyPrefix: I18N_DURATION_KEY_PREFIX }), value: DurationUnit.SECOND }, { - label: t('minute', { keyPrefix: I18N_DURATION_KEY_PREFIX }), + label: t('minutes', { keyPrefix: I18N_DURATION_KEY_PREFIX }), value: DurationUnit.MINUTE }, { - label: t('hour', { keyPrefix: I18N_DURATION_KEY_PREFIX }), + label: t('hours', { keyPrefix: I18N_DURATION_KEY_PREFIX }), value: DurationUnit.HOUR }, - { label: t('day', { keyPrefix: I18N_DURATION_KEY_PREFIX }), value: DurationUnit.DAY } + { label: t('days', { keyPrefix: I18N_DURATION_KEY_PREFIX }), value: DurationUnit.DAY } ]; const pitrRetentionPeriodValue = watch('pitrRetentionPeriodValue'); diff --git a/managed/ui/src/translations/en.json b/managed/ui/src/translations/en.json index c1b0a2448098..70bf40c3cc79 100644 --- a/managed/ui/src/translations/en.json +++ b/managed/ui/src/translations/en.json @@ -42,10 +42,10 @@ "learnMore": "Learn more", "clear": "Clear", "duration": { - "second": "second", - "minute": "minute", - "hour": "hour", - "day": "day" + "seconds": "Seconds", + "minutes": "Minutes", + "hours": "Hours", + "days": "Days" } }, "imgAltText": { @@ -923,7 +923,7 @@ }, "error": { "pitrRetentionPeriodValueRequired": "Required.", - "pitrRetentionPeriodValueMinimum": "PITR retention time must be at least 5 minutes.", + "pitrRetentionPeriodValueMinimum": "Minimum 5 minutes.", "pitrRetentionPeriodUnitRequired": "Required." } },