feat(webui): integrate i18n into folder-tree component and add missing translation keys

This commit is contained in:
yiling
2026-06-27 14:30:22 +08:00
parent 1b60c8df83
commit e8058a2292
30 changed files with 675 additions and 81 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import {
} from '@/ui/components/ui/icons'
import { usePermissions } from '@/ui/hooks/use-permissions'
import { cn } from '@/ui/lib/utils'
import { m } from '@/ui/paraglide/messages.js'
import type { AncestorFolder } from '@shumai/dtos'
import { Link, useNavigate } from '@tanstack/react-router'
import { Check, ChevronDown, FileIcon, History, LayoutGrid, List } from 'lucide-react'
@@ -97,7 +98,7 @@ export function BreadcrumbNav({
})),
]
: [
{ name: 'All Projects', path: `/teams/${teamId}`, isMuted: true },
{ name: m.all_projects(), path: `/teams/${teamId}`, isMuted: true },
{ name: projectName, path: `/projects/${projectId}` },
...ancestorFolders
.slice()