Skip to content

Commit

Permalink
Fix translations again
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Apr 12, 2024
1 parent ae4ed17 commit 2440183
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/ChatDetailsQuickActionsBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ function ChatDetailsQuickActionsBar({report}: ChatDetailsQuickActionsBarProps) {
<View style={[styles.flex1, styles.pr3]}>
<ConfirmModal
danger
title={translate('common.leaveChat')}
title={translate('groupChat.lastMemberTitle')}
isVisible={isLastMemberLeavingGroupModalVisible}
onConfirm={() => {
setIsLastMemberLeavingGroupModalVisible(false);
Report.leaveGroupChat(report.reportID);
}}
onCancel={() => setIsLastMemberLeavingGroupModalVisible(false)}
prompt={translate('groupChat.lastMemberWarning')}
confirmText={translate('common.yes')}
cancelText={translate('common.no')}
confirmText={translate('common.leave')}
cancelText={translate('common.cancel')}
/>
<Button
onPress={() => {
Expand Down
5 changes: 2 additions & 3 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ export default {
cantFindAddress: "Can't find your address? ",
enterManually: 'Enter it manually',
message: 'Message ',
leaveRoom: 'Leave room',
leaveChat: 'Leave chat',
leaveThread: 'Leave thread',
you: 'You',
youAfterPreposition: 'you',
Expand Down Expand Up @@ -1229,7 +1227,8 @@ export default {
},
groupChat: {
groupMembersListTitle: 'Directory of all group members.',
lastMemberWarning: "Heads up! Since you're the last person here, leaving will make this chat inaccessible to all users. Are you sure you want to leave?",
lastMemberTitle: 'Heads up!',
lastMemberWarning: "Since you're the last person here, leaving will make this chat inaccessible to all users. Are you sure you want to leave?",
defaultReportName: ({displayName}: {displayName: string}) => `${displayName}'s group chat`,
},
languagePage: {
Expand Down
4 changes: 2 additions & 2 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ export default {
cantFindAddress: '¿No encuentras tu dirección? ',
enterManually: 'Introducir manualmente',
message: 'Chatear con ',
leaveChat: 'Salir del chat',
leaveThread: 'Salir del hilo',
you: 'Tú',
youAfterPreposition: 'ti',
Expand Down Expand Up @@ -1230,7 +1229,8 @@ export default {
},
groupChat: {
groupMembersListTitle: 'Directorio de los miembros del grupo.',
lastMemberWarning: '¡Atención! Ya que eres la última persona aquí, si te vas, este chat quedará inaccesible para todos los usuarios. ¿Estás seguro de que quieres salir del chat?',
lastMemberTitle: '¡Atención!',
lastMemberWarning: 'Ya que eres la última persona aquí, si te vas, este chat quedará inaccesible para todos los usuarios. ¿Estás seguro de que quieres salir del chat?',
defaultReportName: ({displayName}: {displayName: string}) => `Chat de group de ${displayName}`,
},
languagePage: {
Expand Down

0 comments on commit 2440183

Please sign in to comment.