Mini Apps: Fix translation for download button in mini apps (#6883)
This commit is contained in:
parent
dcb01114ba
commit
8753840f5c
@ -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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user