From 54d5d6150c296d77ea158d57d329792faf790572 Mon Sep 17 00:00:00 2001 From: Thanh Quy - wolf <524H0124@student.tdtu.edu.vn> Date: Thu, 14 May 2026 21:09:18 +0700 Subject: [PATCH] Refactor: Update Vietnamese text to English across multiple components - Translated payment page text from Vietnamese to English. - Updated staff creation page with English labels and messages. - Changed staff schedule page labels and navigation items to English. - Modified shift card and search bar components to use English text. - Updated delete confirmation and product modal components with English messages. - Translated product management tab and category sidebar to English. - Changed shift schedule components to display English text for shifts and actions. - Updated header logo alt text to improve accessibility. --- app/(main)/manager-signup/page.tsx | 29 +++++++------ app/(main)/payment/page.tsx | 12 +++--- app/(manager)/manager/create-staff/page.tsx | 41 +++++++++---------- app/(staff)/staff/schedule/page.tsx | 36 ++++++++-------- components/molecules/cards/ShiftCard.tsx | 4 +- components/molecules/search-bar/SearchBar.tsx | 8 ++-- .../organisms/manager/DeleteConfirm.tsx | 8 ++-- components/organisms/manager/ProductModal.tsx | 36 ++++++++-------- components/organisms/manager/ProductsTab.tsx | 38 ++++++++--------- .../organisms/navigation/CategorySidebar.tsx | 6 +-- .../shift-schedule/MobileShiftView.tsx | 6 +-- .../shift-schedule/MonthlyCalendar.tsx | 4 +- .../shift-schedule/ShiftCreateModal.tsx | 10 ++--- .../shift-schedule/ShiftDetailModal.tsx | 40 +++++++++--------- .../shift-schedule/WeeklySchedule.tsx | 10 ++--- layouts/header.tsx | 2 +- 16 files changed, 144 insertions(+), 146 deletions(-) diff --git a/app/(main)/manager-signup/page.tsx b/app/(main)/manager-signup/page.tsx index 91356aa..f7d50c0 100644 --- a/app/(main)/manager-signup/page.tsx +++ b/app/(main)/manager-signup/page.tsx @@ -151,7 +151,7 @@ export default function ManagerSignupPage() { href="/login" className="flex w-full items-center justify-center rounded-xl border-2 border-(--color-primary) bg-white py-3 font-semibold text-(--color-primary) no-underline transition-all duration-150 hover:bg-(--color-primary) hover:text-white" > - Quay lại đăng nhập + Back to login )} @@ -164,10 +164,10 @@ export default function ManagerSignupPage() {
- Không thể kiểm tra trạng thái đăng ký. Vui lòng thử lại. + Unable to check registration status. Please try again.
- Thêm nhân viên mới cho nhà hàng + Add a new staff member to the restaurant
{view === "week" - ? `Tuần: ${weekLabel}` - : `Tháng: ${MONTH_NAMES[currentDate.getMonth()]} ${currentDate.getFullYear()}`} + ? `Week: ${weekLabel}` + : `Month: ${MONTH_NAMES[currentDate.getMonth()]} ${currentDate.getFullYear()}`}
- Nhân viên đăng ký + Registered staff
- Hành động này không thể hoàn tác. + This action cannot be undone.