reusing pre-translated alert texts

This commit is contained in:
Nouman Tahir 2021-04-07 18:39:18 +05:00
parent c71a59b041
commit 09a116e1b6
2 changed files with 5 additions and 10 deletions

View File

@ -120,13 +120,13 @@ export const UploadsGalleryModal = forwardRef(({username, handleOnSelect, handl
_deleteMediaItem(item._id)
}
Alert.alert(
intl.formatMessage({id:'uploads_modal.alert_remove_title'}),
intl.formatMessage({id:'uploads_modal.alert_remove_body'}),
intl.formatMessage({id:'alert.delete'}),
intl.formatMessage({id:'alert.remove_alert'}),
[{
text:intl.formatMessage({id:'uploads_modal.alert_btn_no'}),
text:intl.formatMessage({id:'alert.cancel'}),
style:'cancel'
},{
text:intl.formatMessage({id:'uploads_modal.alert_btn_yes'}),
text:intl.formatMessage({id:'alert.confirm'}),
onPress:_onConfirm
}]
)

View File

@ -336,12 +336,7 @@
"title":"Uploaded Images",
"title_remove_confirmation":"Delete image",
"btn_add":"Image",
"message_failed":"Failed to upload image",
"message_remove_confirmation":"Are you sure you want to delete this image?",
"alert_remove_title":"Confirm Delete",
"alert_remove_body":"Are you sure you wish to delete this image?",
"alert_btn_yes":"Yes",
"alert_btn_no":"No"
"message_failed":"Failed to upload image"
},
"pincode": {
"enter_text": "Enter PIN to unlock",