fix: missing action value to tools.includeToolNum lang for custom t… (#15239)

This commit is contained in:
Che Kun 2025-03-08 10:55:13 +08:00 committed by GitHub
parent 804b818c6b
commit cfd7e8a829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,7 +337,7 @@ const ProviderDetail = ({
{/* Custom type */} {/* Custom type */}
{!isDetailLoading && (collection.type === CollectionType.custom) && ( {!isDetailLoading && (collection.type === CollectionType.custom) && (
<div className='text-text-secondary system-sm-semibold-uppercase'> <div className='text-text-secondary system-sm-semibold-uppercase'>
<span className=''>{t('tools.includeToolNum', { num: toolList.length }).toLocaleUpperCase()}</span> <span className=''>{t('tools.includeToolNum', { num: toolList.length, action: toolList.length > 1 ? 'actions' : 'action' }).toLocaleUpperCase()}</span>
</div> </div>
)} )}
{/* Workflow type */} {/* Workflow type */}