支持folder主界面多语言

This commit is contained in:
xintaofei
2026-03-07 13:12:18 +08:00
parent 07963e9706
commit 3ddc8f165a
22 changed files with 902 additions and 167 deletions

View File

@@ -1,6 +1,7 @@
"use client"
import { Clock } from "lucide-react"
import { useTranslations } from "next-intl"
import { useTaskContext } from "@/contexts/task-context"
import { Skeleton } from "@/components/ui/skeleton"
import {
@@ -18,6 +19,7 @@ function Spinner({ className }: { className?: string }) {
}
export function StatusBarTasks() {
const t = useTranslations("Folder.statusBar.tasks")
const { tasks } = useTaskContext()
if (tasks.length === 0) return null
@@ -45,7 +47,7 @@ export function StatusBarTasks() {
</button>
</PopoverTrigger>
<PopoverContent side="top" align="end" className="w-72 p-3">
<div className="text-xs font-medium mb-2"></div>
<div className="text-xs font-medium mb-2">{t("title")}</div>
<div className="space-y-2 max-h-48 overflow-y-auto">
{tasks.map((task) => (
<div key={task.id} className="space-y-1">