Skip to content

Commit aac8716

Browse files
Merge pull request #20 from Abdulgafar4/issue-13
feat: add authentication forms and logout functionality
2 parents 195662c + a62b710 commit aac8716

14 files changed

Lines changed: 8329 additions & 12 deletions

File tree

frontend/locales/en.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,53 @@
55
"books": "Books"
66
}
77
},
8+
"auth": {
9+
"login": {
10+
"title": "Login",
11+
"email": "Email",
12+
"password": "Password",
13+
"emailPlaceholder": "your.email@example.com",
14+
"passwordPlaceholder": "Enter your password",
15+
"submit": "Login",
16+
"submitting": "Logging in...",
17+
"success": "Login successful",
18+
"invalid": "Invalid email or password",
19+
"serverError": "Server error. Please try again later.",
20+
"noAccount": "Don't have an account?",
21+
"signupLink": "Sign up"
22+
},
23+
"signup": {
24+
"title": "Sign Up",
25+
"fullName": "Full Name",
26+
"email": "Email",
27+
"password": "Password",
28+
"fullNamePlaceholder": "John Doe",
29+
"emailPlaceholder": "your.email@example.com",
30+
"passwordPlaceholder": "Enter your password",
31+
"submit": "Sign Up",
32+
"submitting": "Creating account...",
33+
"success": "Account created successfully",
34+
"emailExists": "Email already exists",
35+
"serverError": "Server error. Please try again later.",
36+
"hasAccount": "Already have an account?",
37+
"loginLink": "Login"
38+
},
39+
"logout": {
40+
"button": "Logout",
41+
"success": "Logged out successfully"
42+
},
43+
"form": {
44+
"error": {
45+
"emailRequired": "Email is required",
46+
"emailInvalid": "Email must be a valid email address",
47+
"passwordRequired": "Password is required",
48+
"passwordTooShort": "Password must be at least 6 characters long",
49+
"fullNameRequired": "Full name is required",
50+
"fullNameTooShort": "Full name must be at least 2 characters long",
51+
"fullNameTooLong": "Full name cannot exceed 100 characters"
52+
}
53+
}
54+
},
855
"actions": {
956
"book": {
1057
"addSuccess": "Book created successfully",

frontend/locales/ja.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,53 @@
55
"books": "分析"
66
}
77
},
8+
"auth": {
9+
"login": {
10+
"title": "ログイン",
11+
"email": "メールアドレス",
12+
"password": "パスワード",
13+
"emailPlaceholder": "your.email@example.com",
14+
"passwordPlaceholder": "パスワードを入力",
15+
"submit": "ログイン",
16+
"submitting": "ログイン中...",
17+
"success": "ログインに成功しました",
18+
"invalid": "メールアドレスまたはパスワードが無効です",
19+
"serverError": "サーバーエラーが発生しました。しばらくしてからもう一度お試しください。",
20+
"noAccount": "アカウントをお持ちでないですか?",
21+
"signupLink": "サインアップ"
22+
},
23+
"signup": {
24+
"title": "サインアップ",
25+
"fullName": "氏名",
26+
"email": "メールアドレス",
27+
"password": "パスワード",
28+
"fullNamePlaceholder": "山田 太郎",
29+
"emailPlaceholder": "your.email@example.com",
30+
"passwordPlaceholder": "パスワードを入力",
31+
"submit": "サインアップ",
32+
"submitting": "アカウント作成中...",
33+
"success": "アカウントが正常に作成されました",
34+
"emailExists": "メールアドレスは既に使用されています",
35+
"serverError": "サーバーエラーが発生しました。しばらくしてからもう一度お試しください。",
36+
"hasAccount": "既にアカウントをお持ちですか?",
37+
"loginLink": "ログイン"
38+
},
39+
"logout": {
40+
"button": "ログアウト",
41+
"success": "ログアウトしました"
42+
},
43+
"form": {
44+
"error": {
45+
"emailRequired": "メールアドレスが必要です",
46+
"emailInvalid": "有効なメールアドレスを入力してください",
47+
"passwordRequired": "パスワードが必要です",
48+
"passwordTooShort": "パスワードは6文字以上で入力してください",
49+
"fullNameRequired": "氏名が必要です",
50+
"fullNameTooShort": "氏名は2文字以上で入力してください",
51+
"fullNameTooLong": "氏名は100文字以内で入力してください"
52+
}
53+
}
54+
},
855
"actions": {
956
"book": {
1057
"addSuccess": "本が正常に作成されました",

0 commit comments

Comments
 (0)