Skip to content

Commit

Permalink
added Fr label for the reader to read the currency input error when e…
Browse files Browse the repository at this point in the history
…mpty
  • Loading branch information
alex-solo committed Dec 13, 2024
1 parent cc2b4e5 commit 6e8da4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/Forms/CurrencyField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ export const CurrencyField: React.VFC<CurrencyFieldProps> = ({
decimalScale={2}
onBlur={() => setFieldValue(getFieldValue())}
maxLength={locale == Language.EN ? 15 : 16}
aria-label="Enter amount in dollars"
aria-label={
locale === Language.EN
? 'Enter amount in dollars'
: 'Entrez le montant en dollars'
}
aria-describedby={
locale === Language.EN ? `${name}-currency-symbol` : undefined
}
Expand Down

0 comments on commit 6e8da4a

Please sign in to comment.