Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/images/example-check-image-es.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 8 additions & 0 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/ReimbursementAccount/BankAccountStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -259,7 +259,7 @@ class BankAccountStep extends React.Component {
<Image
resizeMode="contain"
style={[styles.exampleCheckImage, styles.mb5]}
source={exampleCheckImage}
source={exampleCheckImage(this.props.preferredLocale)}
/>
<ExpensiTextInput
label={this.props.translate('bankAccount.routingNumber')}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ReimbursementAccount/CompanyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class CompanyStep extends React.Component {
<View style={styles.mt4}>
<ExpensiPicker
label={this.props.translate('companyStep.companyType')}
items={_.map(CONST.INCORPORATION_TYPES, (label, value) => ({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: '-'}}
Expand Down
13 changes: 13 additions & 0 deletions src/pages/ReimbursementAccount/exampleCheckImage.js
Original file line number Diff line number Diff line change
@@ -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;