addition i18n (#2631)

This commit is contained in:
papapatrick
2024-09-06 16:57:47 +08:00
committed by GitHub
parent 9334a0dcf6
commit fb59b60761
10 changed files with 55 additions and 34 deletions

View File

@@ -37,10 +37,10 @@ const PromptTemplate = ({
: {})}
onClick={() => setSelectTemplateTitle(item)}
>
<Box color={'myGray.900'}>{item.title}</Box>
<Box color={'myGray.900'}>{t(item.title as any)}</Box>
<Box color={'myGray.500'} fontSize={'xs'} whiteSpace={'pre-wrap'}>
{item.desc}
{t(item.desc as any)}
</Box>
</Box>
))}