Skip to content

Commit fed5508

Browse files
authored
Merge pull request #49921 from Nodebrute/spanish
add spanish translation
2 parents 3cf3059 + 469c2e1 commit fed5508

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/components/SettlementButton/AnimatedSettlementButton.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, {useCallback, useEffect} from 'react';
22
import Animated, {runOnJS, useAnimatedStyle, useSharedValue, withDelay, withTiming} from 'react-native-reanimated';
33
import Text from '@components/Text';
4+
import useLocalize from '@hooks/useLocalize';
45
import useThemeStyles from '@hooks/useThemeStyles';
56
import variables from '@styles/variables';
67
import CONST from '@src/CONST';
@@ -14,6 +15,7 @@ type AnimatedSettlementButtonProps = SettlementButtonProps & {
1415

1516
function AnimatedSettlementButton({isPaidAnimationRunning, onAnimationFinish, isDisabled, ...settlementButtonProps}: AnimatedSettlementButtonProps) {
1617
const styles = useThemeStyles();
18+
const {translate} = useLocalize();
1719
const buttonScale = useSharedValue(1);
1820
const buttonOpacity = useSharedValue(1);
1921
const paymentCompleteTextScale = useSharedValue(0);
@@ -77,7 +79,7 @@ function AnimatedSettlementButton({isPaidAnimationRunning, onAnimationFinish, is
7779
<Animated.View style={containerStyles}>
7880
{isPaidAnimationRunning && (
7981
<Animated.View style={paymentCompleteTextStyles}>
80-
<Text style={[styles.buttonMediumText]}>Payment complete</Text>
82+
<Text style={[styles.buttonMediumText]}>{translate('iou.paymentComplete')}</Text>
8183
</Animated.View>
8284
)}
8385
<Animated.View style={buttonStyles}>

src/languages/en.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ const translations = {
10261026
bookingPendingDescription: "This booking is pending because it hasn't been paid yet.",
10271027
bookingArchived: 'This booking is archived',
10281028
bookingArchivedDescription: 'This booking is archived because the trip date has passed. Add an expense for the final amount if needed.',
1029+
paymentComplete: 'Payment complete',
10291030
justTrackIt: 'Just track it (don’t submit it)',
10301031
},
10311032
notificationPreferencesPage: {

src/languages/es.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ const translations = {
10211021
bookingPendingDescription: 'Esta reserva está pendiente porque aún no se ha pagado.',
10221022
bookingArchived: 'Esta reserva está archivada',
10231023
bookingArchivedDescription: 'Esta reserva está archivada porque la fecha del viaje ha pasado. Agregue un gasto por el monto final si es necesario.',
1024+
paymentComplete: 'Pago completo',
10241025
justTrackIt: 'Solo guardarlo (no enviarlo)',
10251026
},
10261027
notificationPreferencesPage: {

0 commit comments

Comments
 (0)