From 2685d0665dd2ca5570fc1fc9b9680bdb42201f6f Mon Sep 17 00:00:00 2001 From: Yevhenii Voloshchak Date: Mon, 10 May 2021 21:48:57 +0300 Subject: [PATCH] Move request translation key from common to iou --- src/components/IOUConfirmationList.js | 2 +- src/languages/en.js | 2 +- src/pages/iou/IOUModal.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/IOUConfirmationList.js b/src/components/IOUConfirmationList.js index eb5ee4f76631..48ce0b74be40 100755 --- a/src/components/IOUConfirmationList.js +++ b/src/components/IOUConfirmationList.js @@ -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())} /> diff --git a/src/languages/en.js b/src/languages/en.js index ea7cc11c58a9..b6ea0f7f1801 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -9,7 +9,6 @@ export default { to: 'To', optional: 'Optional', split: 'Split', - request: ({amount}) => `Request ${amount}`, new: 'NEW', search: 'Search', next: 'Next', @@ -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.', diff --git a/src/pages/iou/IOUModal.js b/src/pages/iou/IOUModal.js index da6baf1aa760..05fd51b55c11 100755 --- a/src/pages/iou/IOUModal.js +++ b/src/pages/iou/IOUModal.js @@ -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');