pl-fe: update react-intl, strings cleanup

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-01-06 16:12:20 +01:00
parent c99fe5d908
commit c5072c7c54
14 changed files with 104 additions and 48 deletions

View File

@@ -47,10 +47,10 @@ const ComposeModal: React.FC<BaseModalProps & ComposeModalProps> = ({ onClose, c
? <FormattedMessage id='confirmations.cancel_draft.heading' defaultMessage='Discard draft changes' />
: <FormattedMessage id='confirmations.cancel.heading' defaultMessage='Discard post' />,
message: editedId
? <FormattedMessage id='confirmations.cancel_editing.message' defaultMessage='Are you sure you want to cancel editing this post? All changes will be lost.' />
? <FormattedMessage id='confirmations.cancel_editing.message' defaultMessage='Are you sure you want to discard the changes to this post? All changes will be lost.' />
: compose.draftId
? <FormattedMessage id='confirmations.cancel_draft_editing.message' defaultMessage='Are you sure you want to cancel editing this draft post? All changes will be lost.' />
: <FormattedMessage id='confirmations.cancel.message' defaultMessage='Are you sure you want to cancel creating this post?' />,
? <FormattedMessage id='confirmations.cancel_draft_editing.message' defaultMessage='Are you sure you want to discard the changes to this draft post? All changes will be lost.' />
: <FormattedMessage id='confirmations.cancel.message' defaultMessage='Are you sure you want to discard the currently composed post?' />,
confirm: intl.formatMessage(editedId ? messages.cancelEditing : messages.confirm),
onConfirm: () => {
onClose('COMPOSE');