From 6d64b4c43df26eee3ab0302527b9c3afbf940f6b Mon Sep 17 00:00:00 2001 From: Hanqing Zhao Date: Mon, 11 May 2026 18:55:07 +0800 Subject: [PATCH] chore: add other to categories in marketplace (#36047) --- .../category-switch/category-text.ts | 2 ++ .../marketplace/category-switch/template.tsx | 1 + .../plugins/marketplace/constants.ts | 1 + web/i18n/en-US/plugin.json | 1 + web/i18n/ja-JP/plugin.json | 1 + web/i18n/pt-BR/plugin.json | 20 +++++++++---------- web/i18n/zh-Hans/plugin.json | 1 + web/i18n/zh-Hant/plugin.json | 1 + 8 files changed, 18 insertions(+), 10 deletions(-) diff --git a/web/app/components/plugins/marketplace/category-switch/category-text.ts b/web/app/components/plugins/marketplace/category-switch/category-text.ts index 3cd4340c40..cc551e4076 100644 --- a/web/app/components/plugins/marketplace/category-switch/category-text.ts +++ b/web/app/components/plugins/marketplace/category-switch/category-text.ts @@ -59,6 +59,8 @@ export function useTemplateCategoryText() { return t('marketplace.templateCategory.knowledge', { ns: 'plugin' }) case TEMPLATE_CATEGORY_MAP.design: return t('marketplace.templateCategory.design', { ns: 'plugin' }) + case TEMPLATE_CATEGORY_MAP.other: + return t('marketplace.templateCategory.other', { ns: 'plugin' }) case TEMPLATE_CATEGORY_MAP.all: default: return t('marketplace.templateCategory.all', { ns: 'plugin' }) diff --git a/web/app/components/plugins/marketplace/category-switch/template.tsx b/web/app/components/plugins/marketplace/category-switch/template.tsx index 3ea9be5367..f1f5205942 100644 --- a/web/app/components/plugins/marketplace/category-switch/template.tsx +++ b/web/app/components/plugins/marketplace/category-switch/template.tsx @@ -21,6 +21,7 @@ const categoryValues = [ TEMPLATE_CATEGORY_MAP.it, TEMPLATE_CATEGORY_MAP.knowledge, TEMPLATE_CATEGORY_MAP.design, + TEMPLATE_CATEGORY_MAP.other, ] as const export const TemplateCategorySwitch = ({ diff --git a/web/app/components/plugins/marketplace/constants.ts b/web/app/components/plugins/marketplace/constants.ts index 3952200c28..63948f48b4 100644 --- a/web/app/components/plugins/marketplace/constants.ts +++ b/web/app/components/plugins/marketplace/constants.ts @@ -46,6 +46,7 @@ export const TEMPLATE_CATEGORY_MAP = { it: 'it', knowledge: 'knowledge', design: 'design', + other: 'other', } as const export type ActiveTemplateCategory = typeof TEMPLATE_CATEGORY_MAP[keyof typeof TEMPLATE_CATEGORY_MAP] diff --git a/web/i18n/en-US/plugin.json b/web/i18n/en-US/plugin.json index d4e1805c51..d8107d439f 100644 --- a/web/i18n/en-US/plugin.json +++ b/web/i18n/en-US/plugin.json @@ -246,6 +246,7 @@ "marketplace.templateCategory.knowledge": "Knowledge", "marketplace.templateCategory.marketing": "Marketing", "marketplace.templateCategory.operations": "Operations", + "marketplace.templateCategory.other": "Other", "marketplace.templateCategory.sales": "Sales", "marketplace.templateCategory.support": "Support", "marketplace.templatesHeroSubtitle": "Discover templates built by the community — ready to use, customize, and deploy.", diff --git a/web/i18n/ja-JP/plugin.json b/web/i18n/ja-JP/plugin.json index 84a2f58d5b..5b62c0b2cf 100644 --- a/web/i18n/ja-JP/plugin.json +++ b/web/i18n/ja-JP/plugin.json @@ -246,6 +246,7 @@ "marketplace.templateCategory.knowledge": "ナレッジ", "marketplace.templateCategory.marketing": "マーケティング", "marketplace.templateCategory.operations": "オペレーション", + "marketplace.templateCategory.other": "その他", "marketplace.templateCategory.sales": "セールス", "marketplace.templateCategory.support": "サポート", "marketplace.templatesHeroSubtitle": "コミュニティが開発したテンプレートをチェック — すぐに使えて、自在にカスタマイズ、そのままデプロイ可能。", diff --git a/web/i18n/pt-BR/plugin.json b/web/i18n/pt-BR/plugin.json index a7f900af33..2c1f077abb 100644 --- a/web/i18n/pt-BR/plugin.json +++ b/web/i18n/pt-BR/plugin.json @@ -80,7 +80,6 @@ "categorySingle.model": "Modelo", "categorySingle.tool": "Ferramenta", "categorySingle.trigger": "Gatilho", - "createPublishTemplates": "Criar / Publicar modelos", "debugInfo.title": "Depuração", "debugInfo.viewDocs": "Ver documentos", "deprecated": "Obsoleto", @@ -194,6 +193,10 @@ "list.source.github": "Instalar do GitHub", "list.source.local": "Instalar a partir do arquivo de pacote local", "list.source.marketplace": "Instalar do Marketplace", + "marketplace.and": "e", + "marketplace.difyMarketplace": "Mercado Dify", + "marketplace.discover": "Descobrir", + "marketplace.empower": "Capacite seu desenvolvimento de IA", "marketplace.featured": "Em destaque", "marketplace.installs": "instalações", "marketplace.languages": "Idiomas", @@ -204,7 +207,12 @@ "marketplace.listTopInfo.templatesSubtitle": "Fluxos de trabalho projetados para acelerar seu desenvolvimento de código e IA", "marketplace.listTopInfo.templatesTitleAll": "Todos os modelos", "marketplace.listTopInfo.templatesTitleByCategory": "Todos os modelos de {{category}}", + "marketplace.moreFrom": "Mais do Marketplace", + "marketplace.noCreatorFound": "Nenhum criador encontrado", + "marketplace.noPluginFound": "Nenhum plugin encontrado", + "marketplace.noTemplateFound": "Nenhum modelo encontrado", "marketplace.ourTopPicks": "Nossas principais escolhas para você começar", + "marketplace.partnerTip": "Verificado por um parceiro da Dify", "marketplace.pluginsHeroSubtitle": "Desenvolva com plugins mais seguros e confiáveis do Marketplace Dify.", "marketplace.pluginsHeroTitle": "Descubra. Expanda. Desenvolva.", "marketplace.searchBreadcrumbMarketplace": "Marketplace", @@ -230,19 +238,11 @@ "marketplace.templateCategory.knowledge": "Conhecimento", "marketplace.templateCategory.marketing": "Marketing", "marketplace.templateCategory.operations": "Operações", + "marketplace.templateCategory.other": "Outros", "marketplace.templateCategory.sales": "Vendas", "marketplace.templateCategory.support": "Suporte", "marketplace.templatesHeroSubtitle": "Descubra modelos criados pela comunidade — prontos para usar, personalizar e implantar.", "marketplace.templatesHeroTitle": "Crie. Remixe. Implante.", - "marketplace.and": "e", - "marketplace.difyMarketplace": "Mercado Dify", - "marketplace.discover": "Descobrir", - "marketplace.empower": "Capacite seu desenvolvimento de IA", - "marketplace.moreFrom": "Mais do Marketplace", - "marketplace.noCreatorFound": "Nenhum criador encontrado", - "marketplace.noPluginFound": "Nenhum plugin encontrado", - "marketplace.noTemplateFound": "Nenhum modelo encontrado", - "marketplace.partnerTip": "Verificado por um parceiro da Dify", "marketplace.pluginsResult": "{{num}} resultados", "marketplace.sortBy": "Ordenar por", "marketplace.sortOption.firstReleased": "Lançado pela primeira vez", diff --git a/web/i18n/zh-Hans/plugin.json b/web/i18n/zh-Hans/plugin.json index b48e973e4e..4864aa3d5e 100644 --- a/web/i18n/zh-Hans/plugin.json +++ b/web/i18n/zh-Hans/plugin.json @@ -246,6 +246,7 @@ "marketplace.templateCategory.knowledge": "知识", "marketplace.templateCategory.marketing": "营销", "marketplace.templateCategory.operations": "运营", + "marketplace.templateCategory.other": "其他", "marketplace.templateCategory.sales": "销售", "marketplace.templateCategory.support": "支持", "marketplace.templatesHeroSubtitle": "发现由社区打造的精选模板 —— 即刻使用,灵活定制,快速部署。", diff --git a/web/i18n/zh-Hant/plugin.json b/web/i18n/zh-Hant/plugin.json index 5e98fd5b60..c07f7056d0 100644 --- a/web/i18n/zh-Hant/plugin.json +++ b/web/i18n/zh-Hant/plugin.json @@ -246,6 +246,7 @@ "marketplace.templateCategory.knowledge": "知識", "marketplace.templateCategory.marketing": "行銷", "marketplace.templateCategory.operations": "營運", + "marketplace.templateCategory.other": "其他", "marketplace.templateCategory.sales": "銷售", "marketplace.templateCategory.support": "支援", "marketplace.templatesHeroSubtitle": "探索由社群打造的精選模板 —— 即刻使用,彈性客製,快速部署。",