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
+2 -1
View File
@@ -13,6 +13,7 @@ import { ArrowRight, Loader2, Lock, LogIn, Mail } from 'lucide-react'
import { useEffect, useState } from 'react'
import { useForm } from 'react-hook-form'
import { z } from 'zod'
import { m } from '@/ui/src/paraglide/messages.js'
const loginSchema = z.object({
email: z.string().email('Invalid email address'),
@@ -83,7 +84,7 @@ function LoginPage() {
<AuthLayout>
<div className="mb-8">
<h1 className="text-2xl font-bold tracking-tight text-zinc-900 dark:text-zinc-50">
Welcome Back
{m.welcome_back()}
</h1>
<p className="text-zinc-500 dark:text-zinc-400 text-sm mt-1">
Enter your credentials to access your account.