Skip to content

Commit

Permalink
Merge pull request #16555 from Expensify/stites-reactedWithTranslation
Browse files Browse the repository at this point in the history
Translate "reacted with" in tooltip
  • Loading branch information
puneetlath authored Mar 27, 2023
2 parents 8321d5e + c73a1e0 commit f2c567f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Reactions/AddReactionBubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const AddReactionBubble = (props) => {
};

return (
<Tooltip text={props.translate('reportActionContextMenu.addReactionTooltip')} focusable={false}>
<Tooltip text={props.translate('emojiReactions.addReactionTooltip')} focusable={false}>
<Pressable
ref={ref}
style={({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Reactions/MiniQuickEmojiReactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const MiniQuickEmojiReactions = (props) => {
ref={ref}
onPress={openEmojiPicker}
isDelayButtonStateComplete={false}
tooltipText={props.translate('reportActionContextMenu.addReactionTooltip')}
tooltipText={props.translate('emojiReactions.addReactionTooltip')}
>
{({hovered, pressed}) => (
<Icon
Expand Down
2 changes: 1 addition & 1 deletion src/components/Reactions/ReactionTooltipContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const ReactionTooltipContent = (props) => {
styles.fontColorReactionLabel,
]}
>
{`reacted with :${props.emojiName}:`}
{`${props.translate('emojiReactions.reactedWith')} :${props.emojiName}:`}
</Text>
</View>
);
Expand Down
3 changes: 3 additions & 0 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ export default {
editComment: 'Edit comment',
deleteComment: 'Delete comment',
deleteConfirmation: 'Are you sure you want to delete this comment?',
},
emojiReactions: {
addReactionTooltip: 'Add reaction',
reactedWith: 'reacted with',
},
reportActionsView: {
beginningOfArchivedRoomPartOne: 'You missed the party in ',
Expand Down
3 changes: 3 additions & 0 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ export default {
editComment: 'Editar comentario',
deleteComment: 'Eliminar comentario',
deleteConfirmation: '¿Estás seguro de que quieres eliminar este comentario?',
},
emojiReactions: {
addReactionTooltip: 'Añadir una reacción',
reactedWith: 'reaccionó con',
},
reportActionsView: {
beginningOfArchivedRoomPartOne: 'Te perdiste la fiesta en ',
Expand Down

0 comments on commit f2c567f

Please sign in to comment.