fix: marketplace i18n

This commit is contained in:
StyleZhang 2024-11-14 14:56:15 +08:00
parent 6a63a03cb2
commit ceb18d160f

View File

@ -11,6 +11,7 @@ const Description = async ({
}: DescriptionProps) => { }: DescriptionProps) => {
const localeDefault = getLocaleOnServer() const localeDefault = getLocaleOnServer()
const { t } = await translate(localeFromProps || localeDefault, 'plugin') const { t } = await translate(localeFromProps || localeDefault, 'plugin')
const { t: tCommon } = await translate(localeFromProps || localeDefault, 'common')
return ( return (
<> <>
@ -34,7 +35,8 @@ const Description = async ({
<span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected z-[1]"> <span className="relative ml-1 mr-1 body-md-medium text-text-secondary after:content-[''] after:absolute after:left-0 after:bottom-[1.5px] after:w-full after:h-2 after:bg-text-text-selected z-[1]">
<span className='relative z-[2]'>{t('category.bundles')}</span> <span className='relative z-[2]'>{t('category.bundles')}</span>
</span> </span>
{t('marketplace.inDifyMarketplace')} <span className='mr-1'>{tCommon('operation.in')}</span>
{t('marketplace.difyMarketplace')}
</h2> </h2>
</> </>
) )