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