From 1f40540ef0a4f139efd40729b5debff8288e844e Mon Sep 17 00:00:00 2001 From: CodingOnStar Date: Tue, 28 Jul 2026 16:52:40 +0800 Subject: [PATCH] fix: localize marketplace homepage copy --- .../home/__tests__/home-header.spec.tsx | 2 +- .../plugins/marketplace/home/home-header.tsx | 6 ++++-- web/i18n/ar-TN/plugin.json | 3 ++- web/i18n/de-DE/plugin.json | 3 ++- web/i18n/en-US/plugin.json | 1 + web/i18n/es-ES/plugin.json | 3 ++- web/i18n/fa-IR/plugin.json | 3 ++- web/i18n/fr-FR/plugin.json | 3 ++- web/i18n/hi-IN/plugin.json | 3 ++- web/i18n/id-ID/plugin.json | 3 ++- web/i18n/it-IT/plugin.json | 3 ++- web/i18n/ja-JP/plugin.json | 3 ++- web/i18n/ko-KR/plugin.json | 3 ++- web/i18n/nl-NL/plugin.json | 3 ++- web/i18n/pl-PL/plugin.json | 3 ++- web/i18n/pt-BR/plugin.json | 3 ++- web/i18n/ro-RO/plugin.json | 3 ++- web/i18n/ru-RU/plugin.json | 3 ++- web/i18n/sl-SI/plugin.json | 3 ++- web/i18n/th-TH/plugin.json | 3 ++- web/i18n/tr-TR/plugin.json | 3 ++- web/i18n/uk-UA/plugin.json | 3 ++- web/i18n/vi-VN/plugin.json | 3 ++- web/i18n/zh-Hans/plugin.json | 3 ++- web/i18n/zh-Hant/plugin.json | 21 ++++++++++--------- 25 files changed, 59 insertions(+), 34 deletions(-) diff --git a/web/app/components/plugins/marketplace/home/__tests__/home-header.spec.tsx b/web/app/components/plugins/marketplace/home/__tests__/home-header.spec.tsx index 610d2af72ce..2fd6a203f47 100644 --- a/web/app/components/plugins/marketplace/home/__tests__/home-header.spec.tsx +++ b/web/app/components/plugins/marketplace/home/__tests__/home-header.spec.tsx @@ -36,7 +36,7 @@ describe('HomeHeader', () => { expect(darkLogo).toHaveAttribute('height', '16.386') expect(screen.queryByText('mainNav.marketplace')).not.toBeInTheDocument() - const guideLink = screen.getByRole('link', { name: 'Guide' }) + const guideLink = screen.getByRole('link', { name: 'marketplace.home.guide' }) expect(guideLink).toHaveAttribute('href', 'https://docs.dify.ai/en/home') expect(guideLink).toHaveAttribute('target', '_blank') expect(guideLink).toHaveAttribute('rel', 'noopener noreferrer') diff --git a/web/app/components/plugins/marketplace/home/home-header.tsx b/web/app/components/plugins/marketplace/home/home-header.tsx index e465a738750..407fd59bd10 100644 --- a/web/app/components/plugins/marketplace/home/home-header.tsx +++ b/web/app/components/plugins/marketplace/home/home-header.tsx @@ -1,6 +1,7 @@ import type { HomeCatalogTab } from './home-catalog-tabs' import { Button } from '@langgenius/dify-ui/button' import { cn } from '@langgenius/dify-ui/cn' +import { useTranslation } from '#i18n' import { useDocLink } from '@/context/i18n' import Link from '@/next/link' import MarketplaceLogoDark from '@/public/marketplace/dify-marketplace-logo-dark.svg' @@ -17,12 +18,13 @@ type HomeHeaderProps = { function Guide() { const docLink = useDocLink() + const { t } = useTranslation('plugin') return ( - ) diff --git a/web/i18n/ar-TN/plugin.json b/web/i18n/ar-TN/plugin.json index ce3170dba2a..a84b7a84227 100644 --- a/web/i18n/ar-TN/plugin.json +++ b/web/i18n/ar-TN/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "اكتشف", "marketplace.empower": "تمكين تطوير الذكاء الاصطناعي الخاص بك", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "دليل", + "marketplace.home.heroTitle": "اكتشف. وسّع. ابنِ", "marketplace.home.new": "جديد", "marketplace.home.plugins": "المكونات الإضافية", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/de-DE/plugin.json b/web/i18n/de-DE/plugin.json index 057aceb1c61..d009dfd4543 100644 --- a/web/i18n/de-DE/plugin.json +++ b/web/i18n/de-DE/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Entdecken", "marketplace.empower": "Unterstützen Sie Ihre KI-Entwicklung", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Leitfaden", + "marketplace.home.heroTitle": "Entdecken. Erweitern. Entwickeln", "marketplace.home.new": "Neu", "marketplace.home.plugins": "Plugins", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/en-US/plugin.json b/web/i18n/en-US/plugin.json index a3cf9248db0..a34786f4adb 100644 --- a/web/i18n/en-US/plugin.json +++ b/web/i18n/en-US/plugin.json @@ -227,6 +227,7 @@ "marketplace.discover": "Discover", "marketplace.empower": "Empower your AI development", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", + "marketplace.home.guide": "Guide", "marketplace.home.heroTitle": "Discover. Extend. Build", "marketplace.home.new": "New", "marketplace.home.plugins": "Plugins", diff --git a/web/i18n/es-ES/plugin.json b/web/i18n/es-ES/plugin.json index ce146f25a49..d88a0932715 100644 --- a/web/i18n/es-ES/plugin.json +++ b/web/i18n/es-ES/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Descubrir", "marketplace.empower": "Potencie su desarrollo de IA", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Guía", + "marketplace.home.heroTitle": "Descubre. Amplía. Crea", "marketplace.home.new": "Nuevo", "marketplace.home.plugins": "Plugins", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/fa-IR/plugin.json b/web/i18n/fa-IR/plugin.json index d0b74668964..817335c8b56 100644 --- a/web/i18n/fa-IR/plugin.json +++ b/web/i18n/fa-IR/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "کشف", "marketplace.empower": "توسعه هوش مصنوعی خود را توانمند کنید", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "راهنما", + "marketplace.home.heroTitle": "کشف کنید. گسترش دهید. بسازید", "marketplace.home.new": "جدید", "marketplace.home.plugins": "افزونه‌ها", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/fr-FR/plugin.json b/web/i18n/fr-FR/plugin.json index b0726001427..602f19d6c38 100644 --- a/web/i18n/fr-FR/plugin.json +++ b/web/i18n/fr-FR/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Découvrir", "marketplace.empower": "Renforcez le développement de votre IA", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Guide", + "marketplace.home.heroTitle": "Découvrez. Étendez. Créez", "marketplace.home.new": "Nouveau", "marketplace.home.plugins": "Plugins", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/hi-IN/plugin.json b/web/i18n/hi-IN/plugin.json index 1dd7fdba184..708e11a9d5f 100644 --- a/web/i18n/hi-IN/plugin.json +++ b/web/i18n/hi-IN/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "खोजें", "marketplace.empower": "अपने एआई विकास को सशक्त बनाएं", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "मार्गदर्शिका", + "marketplace.home.heroTitle": "खोजें। विस्तार करें। बनाएँ", "marketplace.home.new": "नया", "marketplace.home.plugins": "एकीकरण", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/id-ID/plugin.json b/web/i18n/id-ID/plugin.json index 41f97a303d2..c96ccad6773 100644 --- a/web/i18n/id-ID/plugin.json +++ b/web/i18n/id-ID/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Menemukan", "marketplace.empower": "Berdayakan pengembangan AI Anda", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Panduan", + "marketplace.home.heroTitle": "Temukan. Perluas. Bangun", "marketplace.home.new": "Baru", "marketplace.home.plugins": "Plugin", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/it-IT/plugin.json b/web/i18n/it-IT/plugin.json index eab683d7fe4..b625b70ff4c 100644 --- a/web/i18n/it-IT/plugin.json +++ b/web/i18n/it-IT/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Scoprire", "marketplace.empower": "Potenzia lo sviluppo dell'intelligenza artificiale", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Guida", + "marketplace.home.heroTitle": "Scopri. Estendi. Crea", "marketplace.home.new": "Nuovo", "marketplace.home.plugins": "Plugin", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/ja-JP/plugin.json b/web/i18n/ja-JP/plugin.json index cbcf3f2943c..f4773039aa2 100644 --- a/web/i18n/ja-JP/plugin.json +++ b/web/i18n/ja-JP/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "探索", "marketplace.empower": "AI 開発をサポートする", "marketplace.home.heroSubtitle": "Dify Marketplace で、より安全で信頼性の高いプラグインを見つけましょう。", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "ガイド", + "marketplace.home.heroTitle": "見つける。拡張する。構築する", "marketplace.home.new": "新着", "marketplace.home.plugins": "プラグイン", "marketplace.home.searchPlaceholder": "プラグインまたはテンプレートを検索", diff --git a/web/i18n/ko-KR/plugin.json b/web/i18n/ko-KR/plugin.json index 52cdda9b1be..2c3f16a8136 100644 --- a/web/i18n/ko-KR/plugin.json +++ b/web/i18n/ko-KR/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "발견하다", "marketplace.empower": "AI 개발 역량 강화", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "가이드", + "marketplace.home.heroTitle": "발견하고, 확장하고, 구축하세요", "marketplace.home.new": "신규", "marketplace.home.plugins": "플러그인", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/nl-NL/plugin.json b/web/i18n/nl-NL/plugin.json index 4114f5d5e38..46f7b4afd50 100644 --- a/web/i18n/nl-NL/plugin.json +++ b/web/i18n/nl-NL/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Discover", "marketplace.empower": "Empower your AI development", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Handleiding", + "marketplace.home.heroTitle": "Ontdek. Breid uit. Bouw", "marketplace.home.new": "Nieuw", "marketplace.home.plugins": "Plugins", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/pl-PL/plugin.json b/web/i18n/pl-PL/plugin.json index 25387aaa067..f642932e02b 100644 --- a/web/i18n/pl-PL/plugin.json +++ b/web/i18n/pl-PL/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Odkryć", "marketplace.empower": "Zwiększ możliwości rozwoju sztucznej inteligencji", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Przewodnik", + "marketplace.home.heroTitle": "Odkrywaj. Rozszerzaj. Twórz", "marketplace.home.new": "Nowość", "marketplace.home.plugins": "Integracje", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/pt-BR/plugin.json b/web/i18n/pt-BR/plugin.json index 771ac3dd68e..1fde10c3a3a 100644 --- a/web/i18n/pt-BR/plugin.json +++ b/web/i18n/pt-BR/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Descobrir", "marketplace.empower": "Capacite seu desenvolvimento de IA", "marketplace.home.heroSubtitle": "Crie com plugins mais seguros e confiáveis do Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Guia", + "marketplace.home.heroTitle": "Descubra. Expanda. Crie", "marketplace.home.new": "Novo", "marketplace.home.plugins": "Plugins", "marketplace.home.searchPlaceholder": "Buscar plugins ou modelos", diff --git a/web/i18n/ro-RO/plugin.json b/web/i18n/ro-RO/plugin.json index a386d288475..fa283ba7a09 100644 --- a/web/i18n/ro-RO/plugin.json +++ b/web/i18n/ro-RO/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Descoperi", "marketplace.empower": "Îmbunătățește-ți dezvoltarea AI", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Ghid", + "marketplace.home.heroTitle": "Descoperă. Extinde. Construiește", "marketplace.home.new": "Nou", "marketplace.home.plugins": "Plugin-uri", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/ru-RU/plugin.json b/web/i18n/ru-RU/plugin.json index d379a9d1dee..869a90f256c 100644 --- a/web/i18n/ru-RU/plugin.json +++ b/web/i18n/ru-RU/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Обнаруживать", "marketplace.empower": "Расширьте возможности разработки ИИ", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Руководство", + "marketplace.home.heroTitle": "Открывайте. Расширяйте. Создавайте", "marketplace.home.new": "Новое", "marketplace.home.plugins": "Интеграции", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/sl-SI/plugin.json b/web/i18n/sl-SI/plugin.json index 1a3b992bd3d..96f39fd2913 100644 --- a/web/i18n/sl-SI/plugin.json +++ b/web/i18n/sl-SI/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Odkrijte", "marketplace.empower": "Okrepite svoj razvoj AI", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Vodnik", + "marketplace.home.heroTitle": "Odkrijte. Razširite. Ustvarite", "marketplace.home.new": "Novo", "marketplace.home.plugins": "Integracije", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/th-TH/plugin.json b/web/i18n/th-TH/plugin.json index d452a2238e5..b173c649654 100644 --- a/web/i18n/th-TH/plugin.json +++ b/web/i18n/th-TH/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "ค้นพบ", "marketplace.empower": "เพิ่มศักยภาพในการพัฒนา AI ของคุณ", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "คู่มือ", + "marketplace.home.heroTitle": "ค้นพบ ขยาย และสร้าง", "marketplace.home.new": "ใหม่", "marketplace.home.plugins": "ปลั๊กอิน", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/tr-TR/plugin.json b/web/i18n/tr-TR/plugin.json index fca636e569c..21aed382625 100644 --- a/web/i18n/tr-TR/plugin.json +++ b/web/i18n/tr-TR/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Keşfet", "marketplace.empower": "Yapay zeka geliştirmenizi güçlendirin", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Kılavuz", + "marketplace.home.heroTitle": "Keşfet. Genişlet. Oluştur", "marketplace.home.new": "Yeni", "marketplace.home.plugins": "Eklentiler", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/uk-UA/plugin.json b/web/i18n/uk-UA/plugin.json index 406aad49233..0d5218066bb 100644 --- a/web/i18n/uk-UA/plugin.json +++ b/web/i18n/uk-UA/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Виявити", "marketplace.empower": "Розширюйте можливості розробки штучного інтелекту", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Посібник", + "marketplace.home.heroTitle": "Відкривайте. Розширюйте. Створюйте", "marketplace.home.new": "Нове", "marketplace.home.plugins": "Інтеграції", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/vi-VN/plugin.json b/web/i18n/vi-VN/plugin.json index 53c922e2f47..89b4a878779 100644 --- a/web/i18n/vi-VN/plugin.json +++ b/web/i18n/vi-VN/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "Khám phá", "marketplace.empower": "Hỗ trợ phát triển AI của bạn", "marketplace.home.heroSubtitle": "Build with safer, more reliable plugins from the Dify Marketplace.", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "Hướng dẫn", + "marketplace.home.heroTitle": "Khám phá. Mở rộng. Xây dựng", "marketplace.home.new": "Mới", "marketplace.home.plugins": "Plugin", "marketplace.home.searchPlaceholder": "Search plugins or templates", diff --git a/web/i18n/zh-Hans/plugin.json b/web/i18n/zh-Hans/plugin.json index eff58497ed0..793776191a3 100644 --- a/web/i18n/zh-Hans/plugin.json +++ b/web/i18n/zh-Hans/plugin.json @@ -227,7 +227,8 @@ "marketplace.discover": "探索", "marketplace.empower": "助力您的 AI 开发", "marketplace.home.heroSubtitle": "在 Dify Marketplace 探索更安全、更可靠的插件。", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "指南", + "marketplace.home.heroTitle": "发现。扩展。构建", "marketplace.home.new": "新", "marketplace.home.plugins": "插件", "marketplace.home.searchPlaceholder": "搜索插件或模板", diff --git a/web/i18n/zh-Hant/plugin.json b/web/i18n/zh-Hant/plugin.json index a252d6358e1..db7b4bf5643 100644 --- a/web/i18n/zh-Hant/plugin.json +++ b/web/i18n/zh-Hant/plugin.json @@ -82,19 +82,19 @@ "autoUpdate.upgradeMode.partial": "僅選擇", "autoUpdate.upgradeModePlaceholder.exclude": "選定的插件將不會自動更新", "autoUpdate.upgradeModePlaceholder.partial": "只有選定的插件會自動更新。目前未選定任何插件,因此不會自動更新任何插件。", - "category.agents": "代理策略", - "category.all": "都", - "category.bundles": "束", + "category.agents": "Agent 策略", + "category.all": "全部", + "category.bundles": "整合包", "category.datasources": "資料來源", - "category.extensions": "擴展", + "category.extensions": "擴充功能", "category.models": "模型", "category.tools": "工具", - "category.triggers": "觸發因素", - "categorySingle.agent": "代理策略", - "categorySingle.bundle": "捆", + "category.triggers": "觸發器", + "categorySingle.agent": "Agent 策略", + "categorySingle.bundle": "整合包", "categorySingle.datasource": "資料來源", - "categorySingle.extension": "外延", - "categorySingle.model": "型", + "categorySingle.extension": "擴充功能", + "categorySingle.model": "模型", "categorySingle.tool": "工具", "categorySingle.trigger": "觸發器", "clearSearch": "清空{{label}}", @@ -227,7 +227,8 @@ "marketplace.discover": "發現", "marketplace.empower": "為您的 AI 開發提供支援", "marketplace.home.heroSubtitle": "在 Dify Marketplace 探索更安全、更可靠的外掛程式。", - "marketplace.home.heroTitle": "Discover. Extend. Build", + "marketplace.home.guide": "指南", + "marketplace.home.heroTitle": "探索。擴展。建構", "marketplace.home.new": "新", "marketplace.home.plugins": "外掛", "marketplace.home.searchPlaceholder": "搜尋外掛程式或範本",