diff --git a/src/app/[locale]/admin/users/UserForm.tsx b/src/app/[locale]/admin/users/UserForm.tsx index 28893a4..5e7ab78 100644 --- a/src/app/[locale]/admin/users/UserForm.tsx +++ b/src/app/[locale]/admin/users/UserForm.tsx @@ -87,7 +87,7 @@ export default function UserForm({ initialData, isEditMode = false }: UserFormPr {t('admin.users.form_name_label')} - + diff --git a/src/app/[locale]/dashboard/profile/page.tsx b/src/app/[locale]/dashboard/profile/page.tsx index 83c8abc..515dd95 100644 --- a/src/app/[locale]/dashboard/profile/page.tsx +++ b/src/app/[locale]/dashboard/profile/page.tsx @@ -1,3 +1,4 @@ + 'use client'; import { useState, useEffect } from 'react'; @@ -116,7 +117,7 @@ export default function ProfilePage() {
- setName(e.target.value)} placeholder="Your Name" disabled={isLoading} /> + setName(e.target.value)} placeholder="Your Nickname" disabled={isLoading} />
diff --git a/src/app/[locale]/register/page.tsx b/src/app/[locale]/register/page.tsx index 15389e5..75e0ada 100644 --- a/src/app/[locale]/register/page.tsx +++ b/src/app/[locale]/register/page.tsx @@ -89,7 +89,7 @@ export default function RegisterPage() { setName(e.target.value)} required diff --git a/src/locales/en.ts b/src/locales/en.ts index 68ed237..9a25684 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -31,7 +31,7 @@ export default { 'login.invalid_credentials_toast_user': 'Invalid email or password. (Hint: user@example.com / password or admin@example.com / passwordadmin)', 'register.create_account': 'Create Your Account', 'register.description': 'Join ToyShare and start sharing the fun!', - 'register.name_label': 'Full Name', + 'register.name_label': 'Nickname', 'register.confirm_password_label': 'Confirm Password', 'register.submit_button': 'Create Account', 'register.loading_button': 'Registering...', @@ -96,7 +96,7 @@ export default { 'dashboard.profile.personal_info_title': 'Personal Information', 'dashboard.profile.personal_info_description': 'Update your publicly visible profile information.', 'dashboard.profile.avatar_url_label': 'Avatar URL', - 'dashboard.profile.full_name_label': 'Full Name', + 'dashboard.profile.full_name_label': 'Nickname', 'dashboard.profile.email_label': 'Email Address (Read-only)', 'dashboard.profile.bio_label': 'Bio', 'dashboard.profile.phone_label': 'Phone Number', @@ -241,7 +241,7 @@ export default { 'admin.users.add_user_description': 'Create a new user account and assign a role.', 'admin.users.edit_user_title': 'Edit User', 'admin.users.edit_user_description': "Update the user's details and role.", - 'admin.users.form_name_label': 'Full Name', + 'admin.users.form_name_label': 'Nickname', 'admin.users.form_email_label': 'Email Address', 'admin.users.form_role_label': 'Role', 'admin.users.form_role_user': 'User', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index 6f89fae..44434d0 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -31,7 +31,7 @@ export default { 'login.invalid_credentials_toast_user': '無效的電子郵件或密碼。(提示: user@example.com / password 或 admin@example.com / passwordadmin)', 'register.create_account': '建立您的帳戶', 'register.description': '加入 ToyShare,開始分享樂趣!', - 'register.name_label': '全名', + 'register.name_label': '暱稱', 'register.confirm_password_label': '確認密碼', 'register.submit_button': '建立帳戶', 'register.loading_button': '註冊中...', @@ -96,7 +96,7 @@ export default { 'dashboard.profile.personal_info_title': '個人資訊', 'dashboard.profile.personal_info_description': '更新您公開顯示的個人資料資訊。', 'dashboard.profile.avatar_url_label': '頭像 URL', - 'dashboard.profile.full_name_label': '全名', + 'dashboard.profile.full_name_label': '暱稱', 'dashboard.profile.email_label': '電子郵件地址 (唯讀)', 'dashboard.profile.bio_label': '簡介', 'dashboard.profile.phone_label': '電話號碼', @@ -109,7 +109,7 @@ export default { 'dashboard.profile.new_password_label': '新密碼', 'dashboard.profile.confirm_new_password_label': '確認新密碼', 'dashboard.profile.update_password_button': '更新密碼', - 'dashboard.profile.updating_password_button': '更新密碼中...', + 'dashboard.profile.updating_button': '更新密碼中...', 'dashboard.profile.language_settings_title': '語言設定', 'dashboard.profile.language_settings_description': '選擇您偏好的應用程式顯示語言。', 'dashboard.profile.display_language_label': '顯示語言', @@ -241,7 +241,7 @@ export default { 'admin.users.add_user_description': '建立一個新的使用者帳戶並分配角色。', 'admin.users.edit_user_title': '編輯使用者', 'admin.users.edit_user_description': '更新使用者的詳細資訊和角色。', - 'admin.users.form_name_label': '全名', + 'admin.users.form_name_label': '暱稱', 'admin.users.form_email_label': '電子郵件地址', 'admin.users.form_role_label': '角色', 'admin.users.form_role_user': '使用者', diff --git a/toyshare.db-shm b/toyshare.db-shm index db17920..d60ca5f 100644 Binary files a/toyshare.db-shm and b/toyshare.db-shm differ diff --git a/toyshare.db-wal b/toyshare.db-wal index 39b9561..9dc8f44 100644 Binary files a/toyshare.db-wal and b/toyshare.db-wal differ