From 176d810c8de1b755d52831ef53913e230c537999 Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 13 Oct 2025 10:55:49 +0800 Subject: [PATCH] chore: update category ui --- web/app/components/explore/category.tsx | 4 +--- web/i18n/de-DE/explore.ts | 1 - web/i18n/en-US/explore.ts | 2 +- web/i18n/es-ES/explore.ts | 1 - web/i18n/fa-IR/explore.ts | 1 - web/i18n/fr-FR/explore.ts | 1 - web/i18n/hi-IN/explore.ts | 1 - web/i18n/id-ID/explore.ts | 1 - web/i18n/it-IT/explore.ts | 1 - web/i18n/ja-JP/explore.ts | 2 +- web/i18n/ko-KR/explore.ts | 1 - web/i18n/pl-PL/explore.ts | 1 - web/i18n/pt-BR/explore.ts | 1 - web/i18n/ro-RO/explore.ts | 1 - web/i18n/ru-RU/explore.ts | 1 - web/i18n/sl-SI/explore.ts | 1 - web/i18n/th-TH/explore.ts | 1 - web/i18n/tr-TR/explore.ts | 1 - web/i18n/uk-UA/explore.ts | 1 - web/i18n/vi-VN/explore.ts | 1 - web/i18n/zh-Hans/explore.ts | 2 +- web/i18n/zh-Hant/explore.ts | 1 - 22 files changed, 4 insertions(+), 24 deletions(-) diff --git a/web/app/components/explore/category.tsx b/web/app/components/explore/category.tsx index a36c91a73d..66b63c68da 100644 --- a/web/app/components/explore/category.tsx +++ b/web/app/components/explore/category.tsx @@ -5,7 +5,6 @@ import { useTranslation } from 'react-i18next' import cn from '@/utils/classnames' import exploreI18n from '@/i18n/en-US/explore' import type { AppCategory } from '@/models/explore' -import { ThumbsUp } from '@/app/components/base/icons/src/vender/line/alertsAndFeedback' const categoryI18n = exploreI18n.category @@ -31,7 +30,7 @@ const Category: FC = ({ const isAllCategories = !list.includes(value as AppCategory) || value === allCategoriesEn const itemClassName = (isSelected: boolean) => cn( - 'flex h-[32px] cursor-pointer items-center rounded-lg border-[0.5px] border-transparent px-3 py-[7px] font-medium leading-[18px] text-text-tertiary hover:bg-components-main-nav-nav-button-bg-active', + 'system-sm-medium flex h-7 cursor-pointer items-center rounded-lg border border-transparent px-3 text-text-tertiary hover:bg-components-main-nav-nav-button-bg-active', isSelected && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active text-components-main-nav-nav-button-text-active shadow-xs', ) @@ -41,7 +40,6 @@ const Category: FC = ({ className={itemClassName(isAllCategories)} onClick={() => onChange(allCategoriesEn)} > - {t('explore.apps.allCategories')} {list.filter(name => name !== allCategoriesEn).map(name => ( diff --git a/web/i18n/de-DE/explore.ts b/web/i18n/de-DE/explore.ts index 3965bffbc8..564f065815 100644 --- a/web/i18n/de-DE/explore.ts +++ b/web/i18n/de-DE/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Alle Kategorien', }, appCard: { addToWorkspace: 'Zum Arbeitsbereich hinzufügen', diff --git a/web/i18n/en-US/explore.ts b/web/i18n/en-US/explore.ts index ef0a620e9e..206e09bc92 100644 --- a/web/i18n/en-US/explore.ts +++ b/web/i18n/en-US/explore.ts @@ -17,7 +17,7 @@ const translation = { }, apps: { title: 'Try Dify\'s curated apps to find AI solutions for your business', - allCategories: 'Recommended', + allCategories: 'All', }, appCard: { addToWorkspace: 'Add to Workspace', diff --git a/web/i18n/es-ES/explore.ts b/web/i18n/es-ES/explore.ts index 4ef2b32242..abeccfdd93 100644 --- a/web/i18n/es-ES/explore.ts +++ b/web/i18n/es-ES/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Recomendado', }, appCard: { addToWorkspace: 'Agregar al espacio de trabajo', diff --git a/web/i18n/fa-IR/explore.ts b/web/i18n/fa-IR/explore.ts index b104a49881..de0ad6d963 100644 --- a/web/i18n/fa-IR/explore.ts +++ b/web/i18n/fa-IR/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'پیشنهاد شده', }, appCard: { addToWorkspace: 'افزودن به فضای کاری', diff --git a/web/i18n/fr-FR/explore.ts b/web/i18n/fr-FR/explore.ts index 92798929c9..5c641ceaf1 100644 --- a/web/i18n/fr-FR/explore.ts +++ b/web/i18n/fr-FR/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Recommandé', }, appCard: { addToWorkspace: 'Ajouter à l\'espace de travail', diff --git a/web/i18n/hi-IN/explore.ts b/web/i18n/hi-IN/explore.ts index f17a3bf4d1..adb518fbac 100644 --- a/web/i18n/hi-IN/explore.ts +++ b/web/i18n/hi-IN/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'अनुशंसित', }, appCard: { addToWorkspace: 'कार्यक्षेत्र में जोड़ें', diff --git a/web/i18n/id-ID/explore.ts b/web/i18n/id-ID/explore.ts index 6eb0fceec0..336cfb576e 100644 --- a/web/i18n/id-ID/explore.ts +++ b/web/i18n/id-ID/explore.ts @@ -15,7 +15,6 @@ const translation = { chat: 'Mengobrol', }, apps: { - allCategories: 'Direkomendasikan', }, appCard: { customize: 'Menyesuaikan', diff --git a/web/i18n/it-IT/explore.ts b/web/i18n/it-IT/explore.ts index bd021965b5..1682b8c852 100644 --- a/web/i18n/it-IT/explore.ts +++ b/web/i18n/it-IT/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Consigliato', }, appCard: { addToWorkspace: 'Aggiungi a Workspace', diff --git a/web/i18n/ja-JP/explore.ts b/web/i18n/ja-JP/explore.ts index 633c1f47a7..b236d56d23 100644 --- a/web/i18n/ja-JP/explore.ts +++ b/web/i18n/ja-JP/explore.ts @@ -17,7 +17,7 @@ const translation = { }, apps: { title: 'Difyの厳選アプリを試して、ビジネス向けのAIソリューションを見つけましょう', - allCategories: '推奨', + allCategories: '全て', }, appCard: { addToWorkspace: 'ワークスペースに追加', diff --git a/web/i18n/ko-KR/explore.ts b/web/i18n/ko-KR/explore.ts index 4af38ad45f..a302663a2c 100644 --- a/web/i18n/ko-KR/explore.ts +++ b/web/i18n/ko-KR/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: '모든 카테고리', }, appCard: { addToWorkspace: '작업 공간에 추가', diff --git a/web/i18n/pl-PL/explore.ts b/web/i18n/pl-PL/explore.ts index 84474f3d94..a325f5e89c 100644 --- a/web/i18n/pl-PL/explore.ts +++ b/web/i18n/pl-PL/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Polecane', }, appCard: { addToWorkspace: 'Dodaj do przestrzeni roboczej', diff --git a/web/i18n/pt-BR/explore.ts b/web/i18n/pt-BR/explore.ts index 6e6ee6dc50..5dc8a18ea9 100644 --- a/web/i18n/pt-BR/explore.ts +++ b/web/i18n/pt-BR/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Recomendado', }, appCard: { addToWorkspace: 'Adicionar ao Espaço de Trabalho', diff --git a/web/i18n/ro-RO/explore.ts b/web/i18n/ro-RO/explore.ts index 607451be3d..ae3a2b9c4f 100644 --- a/web/i18n/ro-RO/explore.ts +++ b/web/i18n/ro-RO/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Recomandate', }, appCard: { addToWorkspace: 'Adăugați la spațiul de lucru', diff --git a/web/i18n/ru-RU/explore.ts b/web/i18n/ru-RU/explore.ts index a977e07f4f..b26cdd24c6 100644 --- a/web/i18n/ru-RU/explore.ts +++ b/web/i18n/ru-RU/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Рекомендуемые', }, appCard: { addToWorkspace: 'Добавить в рабочее пространство', diff --git a/web/i18n/sl-SI/explore.ts b/web/i18n/sl-SI/explore.ts index ae1474f2e5..84bdc80880 100644 --- a/web/i18n/sl-SI/explore.ts +++ b/web/i18n/sl-SI/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Priporočeno', }, appCard: { addToWorkspace: 'Dodaj v delovni prostor', diff --git a/web/i18n/th-TH/explore.ts b/web/i18n/th-TH/explore.ts index ab64ec753a..b316240b71 100644 --- a/web/i18n/th-TH/explore.ts +++ b/web/i18n/th-TH/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'แนะ นำ', }, appCard: { addToWorkspace: 'เพิ่มไปยังพื้นที่ทํางาน', diff --git a/web/i18n/tr-TR/explore.ts b/web/i18n/tr-TR/explore.ts index ea6d4eddb5..402e1c3bac 100644 --- a/web/i18n/tr-TR/explore.ts +++ b/web/i18n/tr-TR/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Önerilen', }, appCard: { addToWorkspace: 'Çalışma Alanına Ekle', diff --git a/web/i18n/uk-UA/explore.ts b/web/i18n/uk-UA/explore.ts index 7fd053bdc3..e9e59e6353 100644 --- a/web/i18n/uk-UA/explore.ts +++ b/web/i18n/uk-UA/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Рекомендовані', }, appCard: { addToWorkspace: 'Додати до робочого простору', diff --git a/web/i18n/vi-VN/explore.ts b/web/i18n/vi-VN/explore.ts index 666017e87f..149c96dfb9 100644 --- a/web/i18n/vi-VN/explore.ts +++ b/web/i18n/vi-VN/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: 'Tất cả danh mục', }, appCard: { addToWorkspace: 'Thêm vào không gian làm việc', diff --git a/web/i18n/zh-Hans/explore.ts b/web/i18n/zh-Hans/explore.ts index b43b12197e..62ab9f699b 100644 --- a/web/i18n/zh-Hans/explore.ts +++ b/web/i18n/zh-Hans/explore.ts @@ -17,7 +17,7 @@ const translation = { }, apps: { title: '试用 Dify 精选示例应用,为您的业务寻找 AI 解决方案', - allCategories: '推荐', + allCategories: '所有', }, appCard: { addToWorkspace: '添加到工作区', diff --git a/web/i18n/zh-Hant/explore.ts b/web/i18n/zh-Hant/explore.ts index d11df0b141..64dc5b9400 100644 --- a/web/i18n/zh-Hant/explore.ts +++ b/web/i18n/zh-Hant/explore.ts @@ -16,7 +16,6 @@ const translation = { }, }, apps: { - allCategories: '推薦', }, appCard: { addToWorkspace: '新增到工作區',