From a48abf23b561c8e68167dc44882091eb9ceb24d8 Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Thu, 16 Apr 2026 06:06:16 +0700 Subject: [PATCH] fix(web): add Vietnamese diacritics to inquiry modal text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The InquiryModal had all Vietnamese text written without diacritics (e.g., "Vui long" instead of "Vui lòng"), which looks unprofessional on a Vietnamese real estate platform. Fixed all 12 text strings. The onClick handler, modal form, API integration (POST /api/v1/inquiries), phone pre-fill, and success state were already correctly implemented. Co-Authored-By: Paperclip --- .../web/components/listings/inquiry-modal.tsx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/web/components/listings/inquiry-modal.tsx b/apps/web/components/listings/inquiry-modal.tsx index 9a06bef..5b69327 100644 --- a/apps/web/components/listings/inquiry-modal.tsx +++ b/apps/web/components/listings/inquiry-modal.tsx @@ -65,11 +65,11 @@ export function InquiryModal({ const trimmedPhone = phone.trim(); if (!trimmedMessage) { - setError('Vui long nhap noi dung tin nhan'); + setError('Vui lòng nhập nội dung tin nhắn'); return; } if (!trimmedPhone || trimmedPhone.length < 9) { - setError('Vui long nhap so dien thoai hop le'); + setError('Vui lòng nhập số điện thoại hợp lệ'); return; } @@ -91,7 +91,7 @@ export function InquiryModal({ setError( err instanceof ApiError ? err.message - : 'Gui tin nhan that bai. Vui long thu lai.', + : 'Gửi tin nhắn thất bại. Vui lòng thử lại.', ); } }; @@ -101,9 +101,9 @@ export function InquiryModal({ - Da gui thanh cong! + Đã gửi thành công! - Tin nhan cua ban da duoc gui den {sellerName}. Ho se lien he voi ban som nhat co the. + Tin nhắn của bạn đã được gửi đến {sellerName}. Họ sẽ liên hệ với bạn sớm nhất có thể.
@@ -122,7 +122,7 @@ export function InquiryModal({
- +
@@ -133,9 +133,9 @@ export function InquiryModal({ - Nhan tin cho nguoi ban + Nhắn tin cho người bán - Gui tin nhan ve tin dang “{listingTitle}” + Gửi tin nhắn về tin đăng “{listingTitle}” @@ -147,10 +147,10 @@ export function InquiryModal({ )}
- +