Skip to content

Commit

Permalink
[PLAT-14892] Update PITR configuration step text
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jethro-M committed Aug 13, 2024
1 parent f6af2f5 commit d7027fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
10 changes: 5 additions & 5 deletions managed/ui/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -923,7 +923,7 @@
},
"error": {
"pitrRetentionPeriodValueRequired": "Required.",
"pitrRetentionPeriodValueMinimum": "PITR retention time must be at least 5 minutes.",
"pitrRetentionPeriodValueMinimum": "Minimum 5 minutes.",
"pitrRetentionPeriodUnitRequired": "Required."
}
},
Expand Down

0 comments on commit d7027fe

Please sign in to comment.