Mini Apps: Fix translation for download button in mini apps (#6883)

This commit is contained in:
Alexander Zinchuk 2026-04-27 14:29:03 +02:00
parent dcb01114ba
commit 8753840f5c

View File

@ -1255,7 +1255,7 @@ const WebAppModalTabContent: FC<OwnProps & StateProps> = ({
/>
<ConfirmDialog
isOpen={Boolean(requestedFileDownload)}
title={oldLang('BotDownloadFileTitle')}
title={lang('BotDownloadFileTitle')}
textParts={lang('BotDownloadFileDescription', {
bot: bot?.firstName,
filename: requestedFileDownload?.fileName,
@ -1263,7 +1263,7 @@ const WebAppModalTabContent: FC<OwnProps & StateProps> = ({
withNodes: true,
withMarkdown: true,
})}
confirmLabel={oldLang('BotDownloadFileButton')}
confirmLabel={lang('BotDownloadFileButton')}
onClose={handleRejectFileDownload}
confirmHandler={handleDownloadFile}
/>