From bb878af50873b919a68134dc007ba9ae859c6c39 Mon Sep 17 00:00:00 2001 From: lyingbug Date: Sat, 10 Oct 2026 17:34:14 +0800 Subject: [PATCH] fix(gallery): improve image detail panel readability (#4130) --- frontend/src/i18n/locales/en-US.ts | 8 +- frontend/src/i18n/locales/ja-JP.ts | 8 +- frontend/src/i18n/locales/ko-KR.ts | 8 +- frontend/src/i18n/locales/ru-RU.ts | 8 +- frontend/src/i18n/locales/zh-CN.ts | 8 +- frontend/src/i18n/locales/zh-TW.ts | 8 +- .../views/knowledge/gallery/GalleryViewer.vue | 247 +++++++++++++++--- 7 files changed, 231 insertions(+), 64 deletions(-) diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 4b848571..98dc3529 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -3507,11 +3507,11 @@ export default { imageLoadError: 'Image failed to load', noCaption: 'No caption', noOcr: 'No text recognized', - caption: 'Caption', - ocr: 'Text in image (OCR)', - attributes: 'Attributes', + caption: 'Image description', + ocr: 'Text in image', + attributes: 'Image attributes', source: 'Source document', - details: 'Details', + details: 'Basic information', dimensions: 'Size', status: 'Status', openSource: 'Open source document', diff --git a/frontend/src/i18n/locales/ja-JP.ts b/frontend/src/i18n/locales/ja-JP.ts index 9e00d8a4..72e215fd 100644 --- a/frontend/src/i18n/locales/ja-JP.ts +++ b/frontend/src/i18n/locales/ja-JP.ts @@ -3507,11 +3507,11 @@ export default { imageLoadError: '画像の読み込みに失敗しました', noCaption: '説明なし', noOcr: '文字は認識されませんでした', - caption: '説明', - ocr: '画像内の文字(OCR)', - attributes: '属性', + caption: '画像の説明', + ocr: '画像内の文字', + attributes: '画像の属性', source: '元のドキュメント', - details: '詳細', + details: '基本情報', dimensions: 'サイズ', status: '状態', openSource: '元のドキュメントを開く', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index a5d1dc6f..2e7201da 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -4539,11 +4539,11 @@ export default { imageLoadError: '이미지를 불러오지 못했습니다', noCaption: '설명 없음', noOcr: '인식된 텍스트 없음', - caption: '설명', - ocr: '이미지 속 텍스트(OCR)', - attributes: '속성', + caption: '이미지 설명', + ocr: '이미지 속 텍스트', + attributes: '이미지 속성', source: '원본 문서', - details: '상세 정보', + details: '기본 정보', dimensions: '크기', status: '상태', openSource: '원본 문서 열기', diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 35fa2dd0..0b4854a6 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -4539,11 +4539,11 @@ export default { imageLoadError: 'Не удалось загрузить изображение', noCaption: 'Нет описания', noOcr: 'Текст не распознан', - caption: 'Описание', - ocr: 'Текст на изображении (OCR)', - attributes: 'Атрибуты', + caption: 'Описание изображения', + ocr: 'Текст на изображении', + attributes: 'Атрибуты изображения', source: 'Исходный документ', - details: 'Подробности', + details: 'Основная информация', dimensions: 'Размер', status: 'Статус', openSource: 'Открыть исходный документ', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 36a09de5..095c0659 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -4541,11 +4541,11 @@ export default { imageLoadError: '图片加载失败', noCaption: '暂无描述', noOcr: '未识别到文字', - caption: '描述', - ocr: '图中文字(OCR)', - attributes: '属性', + caption: '图片描述', + ocr: '图中文字', + attributes: '图片属性', source: '来源文档', - details: '详细信息', + details: '基本信息', dimensions: '尺寸', status: '状态', openSource: '打开来源文档', diff --git a/frontend/src/i18n/locales/zh-TW.ts b/frontend/src/i18n/locales/zh-TW.ts index 3c812777..5bfcdbf7 100644 --- a/frontend/src/i18n/locales/zh-TW.ts +++ b/frontend/src/i18n/locales/zh-TW.ts @@ -4541,11 +4541,11 @@ export default { imageLoadError: '圖片載入失敗', noCaption: '暫無描述', noOcr: '未識別到文字', - caption: '描述', - ocr: '圖中文字(OCR)', - attributes: '屬性', + caption: '圖片描述', + ocr: '圖中文字', + attributes: '圖片屬性', source: '來源文件', - details: '詳細資訊', + details: '基本資訊', dimensions: '尺寸', status: '狀態', openSource: '打開來源文件', diff --git a/frontend/src/views/knowledge/gallery/GalleryViewer.vue b/frontend/src/views/knowledge/gallery/GalleryViewer.vue index 48c6f8e3..712f20ef 100644 --- a/frontend/src/views/knowledge/gallery/GalleryViewer.vue +++ b/frontend/src/views/knowledge/gallery/GalleryViewer.vue @@ -1,8 +1,9 @@