Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
113 stars 7 forks source link

Add feature to customise the character count messages. #424

Closed Ibabalola closed 1 year ago

Ibabalola commented 1 year ago

We need to be able to customise these messages so that we can translate this text:

  const maxCharactersMessage = !hydrated
    ? `You can enter up to ${maxLength} ${limitType}.` // non-js
    : remainingCount >= 0
    ? `You have ${remainingCount} ${limitType} remaining` // js within the limit
    : `You have ${overLimitBy} ${limitType} too many`; // js outside the limit
daniele-zurico commented 1 year ago

closed by #428