diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 487b909c..a61da332 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -373,9 +373,13 @@ export default { title: 'Folders', rootRow: 'All documents', rootRowTip: 'The top level of the knowledge base; every folder sits below it', + rootRowDirect: 'Unfiled documents', + rootRowDirectTip: 'Documents uploaded on their own, not inside any folder', scopeToggle: 'Change list scope', - scopeSubtreeTip: 'Including sub-folders — click to list only this level', - scopeDirectTip: 'Listing only this level — click to include sub-folders', + scopeSubtree: 'With sub-folders', + scopeDirect: 'This level', + scopeSubtreeTip: 'List every document in the selected folder and its sub-folders', + scopeDirectTip: 'List only the selected folder\'s own documents; on the top level these are the unfiled ones', collapse: 'Collapse folders', expand: 'Expand folders', collapseFolder: 'Collapse this folder', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index 33857455..041d08be 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -5132,9 +5132,13 @@ export default { title: '폴더', rootRow: '전체 문서', rootRowTip: '지식 베이스의 최상위이며 모든 폴더가 그 아래에 있습니다', + rootRowDirect: '미분류 문서', + rootRowDirectTip: '단독으로 업로드되어 어떤 폴더에도 속하지 않은 문서', scopeToggle: '목록 범위 변경', - scopeSubtreeTip: '하위 폴더 포함 중 — 클릭하면 이 단계만 표시합니다', - scopeDirectTip: '이 단계만 표시 중 — 클릭하면 하위 폴더를 포함합니다', + scopeSubtree: '하위 포함', + scopeDirect: '현재 단계', + scopeSubtreeTip: '선택한 폴더와 하위 폴더의 모든 문서를 표시합니다', + scopeDirectTip: '선택한 폴더 자체의 문서만 표시합니다. 최상위에서는 미분류 문서입니다', collapse: '폴더 접기', expand: '폴더 펼치기', collapseFolder: '이 폴더 접기', diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 4ffee273..b84a1842 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -5132,9 +5132,13 @@ export default { title: 'Папки', rootRow: 'Все документы', rootRowTip: 'Верхний уровень базы знаний — все папки находятся внутри него', + rootRowDirect: 'Документы вне папок', + rootRowDirectTip: 'Документы, загруженные по отдельности и не находящиеся ни в одной папке', scopeToggle: 'Изменить область списка', - scopeSubtreeTip: 'Вложенные папки включены — нажмите, чтобы показать только этот уровень', - scopeDirectTip: 'Показан только этот уровень — нажмите, чтобы включить вложенные папки', + scopeSubtree: 'С вложенными', + scopeDirect: 'Этот уровень', + scopeSubtreeTip: 'Показать все документы выбранной папки и её вложенных папок', + scopeDirectTip: 'Показать только документы самой выбранной папки; на верхнем уровне это документы вне папок', collapse: 'Свернуть папки', expand: 'Развернуть папки', collapseFolder: 'Свернуть эту папку', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 8c85bc3c..4704c98c 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -5132,9 +5132,13 @@ export default { title: '目录', rootRow: '全部文档', rootRowTip: '知识库顶层,所有文件夹都在它下面', + rootRowDirect: '未归类文档', + rootRowDirectTip: '直接上传、不在任何文件夹里的文档', scopeToggle: '切换列表范围', - scopeSubtreeTip: '当前包含子目录,点击改为仅显示本层文档', - scopeDirectTip: '当前仅显示本层文档,点击改为包含子目录', + scopeSubtree: '含子目录', + scopeDirect: '仅本层', + scopeSubtreeTip: '列出所选目录及其子目录里的全部文档', + scopeDirectTip: '只列出所选目录本层的文档;选中顶层即为未归类文档', collapse: '收起目录', expand: '展开目录', collapseFolder: '收起该文件夹', diff --git a/frontend/src/views/knowledge/KnowledgeBase.vue b/frontend/src/views/knowledge/KnowledgeBase.vue index acd03a9d..7d5cf719 100644 --- a/frontend/src/views/knowledge/KnowledgeBase.vue +++ b/frontend/src/views/knowledge/KnowledgeBase.vue @@ -63,6 +63,7 @@ import { folderBreadcrumbs as buildFolderBreadcrumbs, folderPathExists as folderExistsInTree, isFolderUpload, + rootRowLabelKey, ROOT_FOLDER_PATH, } from './folderTree'; import { useI18n } from 'vue-i18n'; @@ -638,6 +639,8 @@ const showFolderTree = computed(() => !isFAQ.value && hasFolders.value); // Rows only need their folder shown when the current list can span folders. const showDocumentFolderPath = computed(() => hasFolders.value && folderRecursive.value); const folderBreadcrumbs = computed(() => buildFolderBreadcrumbs(selectedFolderPath.value)); +// Leading crumb mirrors the sidebar's root row, whose label depends on the scope. +const folderRootLabel = computed(() => t(rootRowLabelKey(folderRecursive.value))); const filterParams = computed(() => { const [start, end] = updatedTimeRange.value || []; @@ -2269,7 +2272,7 @@ async function createNewSession(value: string): Promise {