chore: message type i18n

This commit is contained in:
Joel
2024-03-26 18:07:35 +08:00
parent b5578c754f
commit a56115a664
4 changed files with 14 additions and 4 deletions

View File

@ -119,7 +119,7 @@ const ConfigPrompt: FC<Props> = ({
/>
<TooltipPlus
popupContent={
<div>{t(`${i18nPrefix}.roleDescription`)}</div>
<div className='max-w-[180px]'>{t(`${i18nPrefix}.roleDescription.${item.role}`)}</div>
}
>
<HelpCircle className='w-3.5 h-3.5 text-gray-400' />

View File

@ -201,7 +201,9 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
title={<div className='flex items-center space-x-1'>
<div className='text-xs font-semibold text-gray-700 uppercase'>user</div>
<TooltipPlus
popupContent={t('workflow.nodes.llm.roleDescription')}
popupContent={
<div className='max-w-[180px]'>{t('workflow.nodes.llm.roleDescription.user')}</div>
}
>
<HelpCircle className='w-3.5 h-3.5 text-gray-400' />
</TooltipPlus>