import { useLocale, useTranslation } from '#i18n'
const Description = () => {
const { t } = useTranslation('plugin')
const { t: tCommon } = useTranslation('common')
const locale = useLocale()
const isZhHans = locale === 'zh-Hans'
return (
<>
{t('marketplace.empower')}
{
isZhHans && (
<>
{tCommon('operation.in')}
{t('marketplace.difyMarketplace')}
{t('marketplace.discover')}
>
)
}
{
!isZhHans && (
<>
{t('marketplace.discover')}
>
)
}
{t('category.models')}
,
{t('category.tools')}
,
{t('category.datasources')}
,
{t('category.triggers')}
,
{t('category.agents')}
,
{t('category.extensions')}
{t('marketplace.and')}
{t('category.bundles')}
{
!isZhHans && (
<>
{tCommon('operation.in')}
{t('marketplace.difyMarketplace')}
>
)
}
>
)
}
export default Description