From 15a75f965ba73349639dc65a0920ec6434faef87 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Mon, 24 Nov 2025 14:18:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=A8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=BC=BA=E5=A4=B1=E7=9A=84=E7=BF=BB=E8=AF=91?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 栏目标题、搜索卡片类型翻译 --- app/components/pages/search/SearchResults.vue | 2 +- app/components/pages/search/SearchTabs.vue | 10 +++++----- i18n/locales/en.json | 1 + i18n/locales/es.json | 1 + i18n/locales/ru.json | 1 + i18n/locales/zh.json | 1 + 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/components/pages/search/SearchResults.vue b/app/components/pages/search/SearchResults.vue index fd62149..816f469 100644 --- a/app/components/pages/search/SearchResults.vue +++ b/app/components/pages/search/SearchResults.vue @@ -12,7 +12,7 @@ {{ hit.summary }}
- 内容类型: + {{ $t('search.section') }}: {{ getIndexLabel(hit.type) }}
diff --git a/app/components/pages/search/SearchTabs.vue b/app/components/pages/search/SearchTabs.vue index c9c5cc1..6ed3e25 100644 --- a/app/components/pages/search/SearchTabs.vue +++ b/app/components/pages/search/SearchTabs.vue @@ -22,11 +22,11 @@ }>(); const tabs = [ - { name: 'all', label: '全部' }, - { name: 'product', label: '产品' }, - { name: 'solution', label: '解决方案' }, - { name: 'question', label: '相关问题' }, - { name: 'document', label: '文档资料' }, + { name: 'all', label: $t('all') }, + { name: 'product', label: $t('search.sections.product') }, + { name: 'solution', label: $t('search.sections.solution') }, + { name: 'question', label: $t('search.sections.faq') }, + { name: 'document', label: $t('search.sections.document') }, ]; const resultCount = computed(() => { diff --git a/i18n/locales/en.json b/i18n/locales/en.json index f9fde1c..1112bc2 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -10,6 +10,7 @@ "result-count": "{count} results", "no-results": "No results found for \"{query}\".", "no-query": "Enter a keyword to start searching.", + "section": "Section", "untitled": "Untitled", "sections": { "product": "Products", diff --git a/i18n/locales/es.json b/i18n/locales/es.json index deaa5b4..adea164 100644 --- a/i18n/locales/es.json +++ b/i18n/locales/es.json @@ -10,6 +10,7 @@ "result-count": "{count} resultados", "no-results": "No se encontraron coincidencias para \"{query}\".", "no-query": "Ingrese una palabra clave para comenzar a buscar.", + "section": "sección", "untitled": "sin título", "sections": { "product": "Productos", diff --git a/i18n/locales/ru.json b/i18n/locales/ru.json index 5b70012..22462c9 100644 --- a/i18n/locales/ru.json +++ b/i18n/locales/ru.json @@ -10,6 +10,7 @@ "result-count": "Всего {count} результатов", "no-results": "Ничего не найдено по запросу \"{query}\".", "no-query": "Введите ключевые слова для начала поиска.", + "section": "раздел", "untitled": "Без названия", "sections": { "product": "Продукты", diff --git a/i18n/locales/zh.json b/i18n/locales/zh.json index ad4373c..50f27ce 100644 --- a/i18n/locales/zh.json +++ b/i18n/locales/zh.json @@ -10,6 +10,7 @@ "result-count": "共 {count} 条结果", "no-results": "没有找到与 “{query}” 匹配的内容。", "no-query": "请输入关键字开始搜索。", + "section": "内容类型", "untitled": "未命名条目", "sections": { "product": "产品",