diff --git a/awx/ui_next/src/components/Schedule/shared/FrequencyDetailSubform.jsx b/awx/ui_next/src/components/Schedule/shared/FrequencyDetailSubform.jsx index 6775edda1b..d40976e26a 100644 --- a/awx/ui_next/src/components/Schedule/shared/FrequencyDetailSubform.jsx +++ b/awx/ui_next/src/components/Schedule/shared/FrequencyDetailSubform.jsx @@ -3,7 +3,7 @@ import React from 'react'; import styled from 'styled-components'; import { useField } from 'formik'; import { withI18n } from '@lingui/react'; -import { t } from '@lingui/macro'; +import { t, Trans } from '@lingui/macro'; import { RRule } from 'rrule'; import { Checkbox as _Checkbox, @@ -45,7 +45,7 @@ export function requiredPositiveInteger(i18n) { return value => { if (typeof value === 'number') { if (!Number.isInteger(value)) { - return i18n._(t`This field must an integer`); + return i18n._(t`This field must be an integer`); } if (value < 1) { return i18n._(t`This field must be greater than 0`); @@ -141,7 +141,11 @@ const FrequencyDetailSubform = ({ i18n }) => { value: 7, label: i18n._(t`July`), }, - { key: 'august', value: 8, label: i18n._(t`August`) }, + { + key: 'august', + value: 8, + label: i18n._(t`August`), + }, { key: 'september', value: 9, @@ -344,8 +348,11 @@ const FrequencyDetailSubform = ({ i18n }) => { label={
{frequency?.value === 'month' && ( - - Day + + Day )} {frequency?.value === 'year' && ( @@ -383,8 +390,11 @@ const FrequencyDetailSubform = ({ i18n }) => { name="runOn" label={
- - The + + The { {...runOnTheDay} /> {frequency?.value === 'year' && ( - + <> + + of + + + )}
}