feat(webui): add i18n text keys and translate one static text element per page for verification

This commit is contained in:
yiling
2026-06-26 11:24:32 +08:00
parent 6e2e5bdbc2
commit 4fd27ab147
14 changed files with 47 additions and 14 deletions
@@ -1,6 +1,7 @@
import { client } from '@/ui/api/client'
import { FolderTree } from '@/ui/components/folder-tree'
import { ResizeHandle } from '@/ui/components/resize-handle'
import { m } from '@/ui/src/paraglide/messages.js'
import {
Table,
TableBody,
@@ -135,7 +136,7 @@ function CollectionsPage() {
<header className="h-14 border-b flex items-center justify-between px-6 shrink-0 bg-background/50 backdrop-blur-sm sticky top-0 z-10">
<div className="flex items-center gap-2">
<Bookmark className="h-5 w-5 text-primary" />
<h1 className="font-bold text-lg text-foreground">All Collections</h1>
<h1 className="font-bold text-lg text-foreground">{m.all_collections()}</h1>
</div>
</header>
@@ -1,6 +1,7 @@
import { client } from '@/ui/api/client'
import { FileViewer } from '@/ui/components/file-viewer'
import { FileViewerLeftSidebar } from '@/ui/components/file-viewer-left-sidebar'
import { m } from '@/ui/src/paraglide/messages.js'
import { FileViewerRightSidebar } from '@/ui/components/file-viewer-right-sidebar'
import { ResizeHandle } from '@/ui/components/resize-handle'
import { FileDetailSkeleton } from '@/ui/components/loading-skeletons'
@@ -268,7 +269,7 @@ function FileViewPage() {
}
if (isError || !fileData || !projectInfo || !teamId) {
return <div>File not found.</div>
return <div>{m.file_not_found()}</div>
}
const handleSaveField = (fieldId: string, value: unknown) => {
@@ -1,6 +1,7 @@
import { client } from '@/ui/api/client'
import { FolderTree } from '@/ui/components/folder-tree'
import { ResizeHandle } from '@/ui/components/resize-handle'
import { m } from '@/ui/src/paraglide/messages.js'
import { Switch } from '@/ui/components/ui/switch'
import { Button } from '@/ui/components/ui/button'
import {
@@ -165,7 +166,7 @@ function SharesPage() {
<header className="h-14 border-b flex items-center justify-between px-6 shrink-0 bg-background/50 backdrop-blur-sm sticky top-0 z-10">
<div className="flex items-center gap-2">
<Share2 className="h-5 w-5 text-primary" />
<h1 className="font-bold text-lg text-foreground">All Share Links</h1>
<h1 className="font-bold text-lg text-foreground">{m.all_share_links()}</h1>
</div>
</header>