diff --git a/app/javascript/packages/document-capture/components/review-issues-step.tsx b/app/javascript/packages/document-capture/components/review-issues-step.tsx index a7daa7ad16e..a660d881d0b 100644 --- a/app/javascript/packages/document-capture/components/review-issues-step.tsx +++ b/app/javascript/packages/document-capture/components/review-issues-step.tsx @@ -114,11 +114,7 @@ function ReviewIssuesStep({ {remainingAttempts <= DISPLAY_ATTEMPTS && (
- - {remainingAttempts === 1 - ? t('idv.failure.attempts.one') - : t('idv.failure.attempts.other', { count: remainingAttempts })} - + {t('idv.failure.attempts', { count: remainingAttempts })}
)} diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml index 3a211b56284..2ec1d10a032 100644 --- a/config/i18n-tasks.yml +++ b/config/i18n-tasks.yml @@ -99,8 +99,6 @@ ignore_unused: - 'errors.messages.*' - 'simple_form.*' - 'time.*' - - 'idv.failure.attempts.one' - - 'idv.failure.attempts.other' ## Exclude these keys from the `i18n-tasks eq-base' report: # ignore_eq_base: # all: diff --git a/spec/javascripts/packages/document-capture/components/review-issues-step-spec.jsx b/spec/javascripts/packages/document-capture/components/review-issues-step-spec.jsx index de1665f8b57..818fe383ec4 100644 --- a/spec/javascripts/packages/document-capture/components/review-issues-step-spec.jsx +++ b/spec/javascripts/packages/document-capture/components/review-issues-step-spec.jsx @@ -5,6 +5,8 @@ import { UploadContextProvider, AnalyticsContext, } from '@18f/identity-document-capture'; +import { I18n } from '@18f/identity-i18n'; +import { I18nContext } from '@18f/identity-react-i18n'; import ReviewIssuesStep from '@18f/identity-document-capture/components/review-issues-step'; import { toFormEntryError } from '@18f/identity-document-capture/services/upload'; import { useSandbox } from '@18f/identity-test-helpers'; @@ -38,10 +40,25 @@ describe('document-capture/components/review-issues-step', () => { }); it('renders initially with warning page and displays attempts remaining', () => { - const { getByRole, getByText } = render(