diff --git a/src/components/SettlementButton/AnimatedSettlementButton.tsx b/src/components/SettlementButton/AnimatedSettlementButton.tsx index 648c1dad36c3..5de528d741a2 100644 --- a/src/components/SettlementButton/AnimatedSettlementButton.tsx +++ b/src/components/SettlementButton/AnimatedSettlementButton.tsx @@ -1,6 +1,7 @@ import React, {useCallback, useEffect} from 'react'; import Animated, {runOnJS, useAnimatedStyle, useSharedValue, withDelay, withTiming} from 'react-native-reanimated'; import Text from '@components/Text'; +import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; import variables from '@styles/variables'; import CONST from '@src/CONST'; @@ -14,6 +15,7 @@ type AnimatedSettlementButtonProps = SettlementButtonProps & { function AnimatedSettlementButton({isPaidAnimationRunning, onAnimationFinish, isDisabled, ...settlementButtonProps}: AnimatedSettlementButtonProps) { const styles = useThemeStyles(); + const {translate} = useLocalize(); const buttonScale = useSharedValue(1); const buttonOpacity = useSharedValue(1); const paymentCompleteTextScale = useSharedValue(0); @@ -77,7 +79,7 @@ function AnimatedSettlementButton({isPaidAnimationRunning, onAnimationFinish, is {isPaidAnimationRunning && ( - Payment complete + {translate('iou.paymentComplete')} )} diff --git a/src/languages/en.ts b/src/languages/en.ts index 8027ae45e00e..27c0a1025651 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -1026,6 +1026,7 @@ const translations = { bookingPendingDescription: "This booking is pending because it hasn't been paid yet.", bookingArchived: 'This booking is archived', bookingArchivedDescription: 'This booking is archived because the trip date has passed. Add an expense for the final amount if needed.', + paymentComplete: 'Payment complete', justTrackIt: 'Just track it (don’t submit it)', }, notificationPreferencesPage: { diff --git a/src/languages/es.ts b/src/languages/es.ts index 4324c8b29fdc..6b8734bd37e2 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -1021,6 +1021,7 @@ const translations = { bookingPendingDescription: 'Esta reserva está pendiente porque aún no se ha pagado.', bookingArchived: 'Esta reserva está archivada', bookingArchivedDescription: 'Esta reserva está archivada porque la fecha del viaje ha pasado. Agregue un gasto por el monto final si es necesario.', + paymentComplete: 'Pago completo', justTrackIt: 'Solo guardarlo (no enviarlo)', }, notificationPreferencesPage: {