diff --git a/README.md b/README.md index 7c2c429698938..5b55d944f603e 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,7 @@ localize the following types of data when presented to the user (even accessibil - Texts: See [translate method](https://github.com/Expensify/App/blob/655ba416d552d5c88e57977a6e0165fb7eb7ab58/src/libs/translate.js#L15) - Date/time: see [DateUtils](https://github.com/Expensify/App/blob/f579946fbfbdc62acc5bd281dc75cabb803d9af0/src/libs/DateUtils.js) -- Numbers and amounts: see [numberFormat](https://github.com/Expensify/App/tree/965f92fc2a5a2a0d01e6114bf5aa8755b9d9fd1a/src/libs/numberFormat) +- Numbers and amounts: see [NumberFormatUtils](https://github.com/Expensify/App/blob/55b2372d1344e3b61854139806a53f8a3d7c2b8b/src/libs/NumberFormatUtils.js) and [LocaleDigitUtils](https://github.com/Expensify/App/blob/55b2372d1344e3b61854139806a53f8a3d7c2b8b/src/libs/LocaleDigitUtils.js) - Phones: see [LocalPhoneNumber](https://github.com/Expensify/App/blob/bdfbafe18ee2d60f766c697744f23fad64b62cad/src/libs/LocalePhoneNumber.js#L51-L52) In most cases, you will be needing to localize data used in a component, if that's the case, there's a HOC [withLocalize](https://github.com/Expensify/App/blob/37465dbd07da1feab8347835d82ed3d2302cde4c/src/components/withLocalize.js). diff --git a/src/components/BigNumberPad.js b/src/components/BigNumberPad.js index df73132a610e7..604eab5b06626 100644 --- a/src/components/BigNumberPad.js +++ b/src/components/BigNumberPad.js @@ -5,10 +5,13 @@ import PropTypes from 'prop-types'; import styles from '../styles/styles'; import Button from './Button'; import ControlSelection from '../libs/ControlSelection'; +import withLocalize, {withLocalizePropTypes} from './withLocalize'; const propTypes = { /** Callback to inform parent modal with key pressed */ numberPressed: PropTypes.func.isRequired, + + ...withLocalizePropTypes, }; const padNumbers = [ @@ -57,7 +60,7 @@ class BigNumberPad extends React.Component {