diff --git a/assets/images/example-check-image.png b/assets/images/example-check-image-en.png similarity index 100% rename from assets/images/example-check-image.png rename to assets/images/example-check-image-en.png diff --git a/assets/images/example-check-image-es.png b/assets/images/example-check-image-es.png new file mode 100644 index 000000000000..ed757c7f7d8a Binary files /dev/null and b/assets/images/example-check-image-es.png differ diff --git a/src/languages/en.js b/src/languages/en.js index 720cd18ce112..5aac44117a6e 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -584,6 +584,14 @@ export default { listOfRestrictedBusinesses: 'list of restricted businesses', incorporationDatePlaceholder: 'Start date (yyyy-mm-dd)', companyPhonePlaceholder: 'Phone Number (xxx)xxx-xxxx', + incorporationTypes: { + LLC: 'LLC', + CORPORATION: 'Corp', + PARTNERSHIP: 'Partnership', + COOPERATIVE: 'Cooperative', + SOLE_PROPRIETORSHIP: 'Sole Proprietorship', + OTHER: 'Other', + }, }, requestorStep: { headerTitle: 'Personal information', diff --git a/src/languages/es.js b/src/languages/es.js index 0e1749838482..df9da4c22d82 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -586,6 +586,14 @@ export default { listOfRestrictedBusinesses: 'lista de negocios restringidos', incorporationDatePlaceholder: 'Fecha de inicio (aaaa-mm-dd)', companyPhonePlaceholder: '(prefijo) + (número)', + incorporationTypes: { + LLC: 'LLC', + CORPORATION: 'Corp', + PARTNERSHIP: 'Sociedad', + COOPERATIVE: 'Cooperativa', + SOLE_PROPRIETORSHIP: 'Propietario único', + OTHER: 'Otra', + }, }, requestorStep: { headerTitle: 'Información personal', diff --git a/src/pages/ReimbursementAccount/BankAccountStep.js b/src/pages/ReimbursementAccount/BankAccountStep.js index d302ead8dca5..01acd421f9d3 100644 --- a/src/pages/ReimbursementAccount/BankAccountStep.js +++ b/src/pages/ReimbursementAccount/BankAccountStep.js @@ -16,7 +16,7 @@ import CONST from '../../CONST'; import AddPlaidBankAccount from '../../components/AddPlaidBankAccount'; import CheckboxWithLabel from '../../components/CheckboxWithLabel'; import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize'; -import exampleCheckImage from '../../../assets/images/example-check-image.png'; +import exampleCheckImage from './exampleCheckImage'; import Text from '../../components/Text'; import ExpensiTextInput from '../../components/ExpensiTextInput'; import { @@ -259,7 +259,7 @@ class BankAccountStep extends React.Component { ({value, label}))} + items={_.map(this.props.translate('companyStep.incorporationTypes'), (label, value) => ({value, label}))} onChange={value => this.clearErrorAndSetValue('incorporationType', value)} value={this.state.incorporationType} placeholder={{value: '', label: '-'}} diff --git a/src/pages/ReimbursementAccount/exampleCheckImage.js b/src/pages/ReimbursementAccount/exampleCheckImage.js new file mode 100644 index 000000000000..5351ef491683 --- /dev/null +++ b/src/pages/ReimbursementAccount/exampleCheckImage.js @@ -0,0 +1,13 @@ +import exampleCheckImageEn from '../../../assets/images/example-check-image-en.png'; +import exampleCheckImageEs from '../../../assets/images/example-check-image-es.png'; + +const images = { + en: exampleCheckImageEn, + es: exampleCheckImageEs, +}; + +function exampleCheckImage(languageKey = 'en') { + return images[languageKey]; +} + +export default exampleCheckImage;