Skip to content

Commit

Permalink
Add translation for 'Flip' in English and Spanish, and update button …
Browse files Browse the repository at this point in the history
…text in MoneyRequestAmountForm
  • Loading branch information
pasyukevich committed Jan 31, 2025
1 parent 60025b5 commit 661602b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ const translations = {
payElsewhere: ({formattedAmount}: SettleExpensifyCardParams) => (formattedAmount ? `Pay ${formattedAmount} elsewhere` : `Pay elsewhere`),
nextStep: 'Next steps',
finished: 'Finished',
flip: 'Flip',
sendInvoice: ({amount}: RequestAmountParams) => `Send ${amount} invoice`,
submitAmount: ({amount}: RequestAmountParams) => `submit ${amount}`,
submittedAmount: ({formattedAmount, comment}: RequestedAmountMessageParams) => `submitted ${formattedAmount}${comment ? ` for ${comment}` : ''}`,
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ const translations = {
payElsewhere: ({formattedAmount}: SettleExpensifyCardParams) => (formattedAmount ? `Pagar ${formattedAmount} de otra forma` : `Pagar de otra forma`),
nextStep: 'Pasos siguientes',
finished: 'Finalizado',
flip: 'Voltear',
sendInvoice: ({amount}: RequestAmountParams) => `Enviar factura de ${amount}`,
submitAmount: ({amount}: RequestAmountParams) => `solicitar ${amount}`,
submittedAmount: ({formattedAmount, comment}: RequestedAmountMessageParams) => `solicitó ${formattedAmount}${comment ? ` para ${comment}` : ''}`,
Expand Down
6 changes: 4 additions & 2 deletions src/pages/iou/MoneyRequestAmountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,18 +306,20 @@ function MoneyRequestAmountForm(
)}
</View>
<View>
<View style={[styles.flexRow, styles.justifyContentCenter, styles.mt5, styles.gap2]}>
<View style={[styles.flexRow, styles.justifyContentCenter, styles.mb2, styles.gap2]}>
<Button
shouldShowRightIcon
small
iconRight={Expensicons.DownArrow}
onPress={onCurrencyButtonPress}
text={currency}
/>
<Button
shouldShowRightIcon
small
iconRight={Expensicons.PlusMinus}
onPress={onFlipAmount}
text={'Flip'}
text={translate('iou.flip')}
/>
</View>
</View>
Expand Down

0 comments on commit 661602b

Please sign in to comment.