Translate all user-facing text to English and update UI elements

This commit addresses the user's request to translate all visible text within the application to English. It also updates the login modal to display the SAPIENS logo correctly. Additionally, various UI components and messages related to articles, community posts, auctions, and login/error handling have been localized.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9a264234-c5d7-4dcc-adf3-a954b149b30d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/9a264234-c5d7-4dcc-adf3-a954b149b30d/CMG42YQ
This commit is contained in:
kimjaehyeon0101
2025-10-15 08:06:03 +00:00
parent 7af7c0ef12
commit d2eb898640
6 changed files with 120 additions and 113 deletions

View File

@ -34,8 +34,8 @@ export default function LoginModal({ isOpen, onClose }: LoginModalProps) {
if (response.ok) {
const user = await response.json();
toast({
title: "로그인 성공",
description: `환영합니다, ${user.firstName}!`,
title: "Login Successful",
description: `Welcome, ${user.firstName}!`,
});
// Invalidate auth queries to refresh user state
@ -48,15 +48,15 @@ export default function LoginModal({ isOpen, onClose }: LoginModalProps) {
} else {
const error = await response.json();
toast({
title: "로그인 실패",
description: error.message || "잘못된 아이디 또는 비밀번호입니다.",
title: "Login Failed",
description: error.message || "Invalid username or password.",
variant: "destructive",
});
}
} catch (error) {
toast({
title: "로그인 오류",
description: "로그인 중 오류가 발생했습니다.",
title: "Login Error",
description: "An error occurred during login.",
variant: "destructive",
});
} finally {
@ -79,7 +79,7 @@ export default function LoginModal({ isOpen, onClose }: LoginModalProps) {
</DialogHeader>
<form onSubmit={handleLogin} className="space-y-4">
<div className="space-y-2">
<Label htmlFor="username"></Label>
<Label htmlFor="username">Username</Label>
<Input
id="username"
type="text"
@ -87,13 +87,13 @@ export default function LoginModal({ isOpen, onClose }: LoginModalProps) {
onChange={(e) => setUsername(e.target.value)}
onInvalid={(e) => (e.target as HTMLInputElement).setCustomValidity('Please enter your username')}
onInput={(e) => (e.target as HTMLInputElement).setCustomValidity('')}
placeholder="아이디를 입력하세요"
placeholder="Enter your username"
required
data-testid="input-username"
/>
</div>
<div className="space-y-2">
<Label htmlFor="password"></Label>
<Label htmlFor="password">Password</Label>
<Input
id="password"
type="password"
@ -101,7 +101,7 @@ export default function LoginModal({ isOpen, onClose }: LoginModalProps) {
onChange={(e) => setPassword(e.target.value)}
onInvalid={(e) => (e.target as HTMLInputElement).setCustomValidity('Please enter your password')}
onInput={(e) => (e.target as HTMLInputElement).setCustomValidity('')}
placeholder="비밀번호를 입력하세요"
placeholder="Enter your password"
required
data-testid="input-password"
/>
@ -113,7 +113,7 @@ export default function LoginModal({ isOpen, onClose }: LoginModalProps) {
disabled={isLoading}
data-testid="button-login-submit"
>
{isLoading ? "로그인 중..." : "로그인"}
{isLoading ? "Logging in..." : "Login"}
</Button>
<Button
type="button"
@ -122,7 +122,7 @@ export default function LoginModal({ isOpen, onClose }: LoginModalProps) {
disabled={isLoading}
data-testid="button-login-cancel"
>
Cancel
</Button>
</div>
</form>