mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 11:24:43 +00:00
feat(webui): add i18n text keys and translate one static text element per page for verification
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user