Skip to content

Commit

Permalink
Move request translation key from common to iou
Browse files Browse the repository at this point in the history
  • Loading branch information
eVoloshchak committed May 10, 2021
1 parent f5c7b36 commit 2685d06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/IOUConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class IOUConfirmationList extends Component {
isLoading={this.props.iou.loading}
text={this.props.hasMultipleParticipants
? this.props.translate('common.split')
: this.props.translate('common.request', {amount: this.props.iouAmount})}
: this.props.translate('iou.request', {amount: this.props.iouAmount})}
onClick={() => this.props.onConfirm(this.getSplits())}
/>
</View>
Expand Down
2 changes: 1 addition & 1 deletion src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default {
to: 'To',
optional: 'Optional',
split: 'Split',
request: ({amount}) => `Request ${amount}`,
new: 'NEW',
search: 'Search',
next: 'Next',
Expand Down Expand Up @@ -99,6 +98,7 @@ export default {
confirm: 'Confirm',
splitBill: 'Split Bill',
requestMoney: 'Request Money',
request: ({amount}) => `Request ${amount}`,
},
loginField: {
addYourPhoneToSettleViaVenmo: 'Add your phone number to settle up via Venmo.',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/iou/IOUModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class IOUModal extends Component {
if (currentStepIndex === 1 || currentStepIndex === 2) {
return `${this.props.hasMultipleParticipants
? this.props.translate('common.split')
: this.props.translate('common.request', {amount: this.state.amount})}`;
: this.props.translate('iou.request', {amount: this.state.amount})}`;
}
if (currentStepIndex === 0) {
return this.props.translate(this.props.hasMultipleParticipants ? 'iou.splitBill' : 'iou.requestMoney');
Expand Down

0 comments on commit 2685d06

Please sign in to comment.