From 2ff49ef4ab610f9210dbed9a46d5997c2a2b30dd Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Fri, 31 Oct 2025 16:59:36 +0900 Subject: [PATCH] =?UTF-8?q?Remove=20'=EC=9D=BC'=20suffix=20from=20Korean?= =?UTF-8?q?=20calendar=20day=20numbers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modified formatDay function in both calendar components: - For Korean locale (ko), display only the day number (e.g., '10' instead of '10일') - For other locales, use default toLocaleString formatting Changes: - nice-calendar.tsx: Updated formatDay to check currentLocale === 'ko' - nice-calendar-month.tsx: Updated formatDay to check currentLocale === 'ko' 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/shared/ui/calendar/nice-calendar-month.tsx | 4 ++++ src/shared/ui/calendar/nice-calendar.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/shared/ui/calendar/nice-calendar-month.tsx b/src/shared/ui/calendar/nice-calendar-month.tsx index f2ee3b2..e9488d1 100644 --- a/src/shared/ui/calendar/nice-calendar-month.tsx +++ b/src/shared/ui/calendar/nice-calendar-month.tsx @@ -77,6 +77,10 @@ const NiceCalendarMonth = ({ }); }; const formatDay = (locale: string | undefined, date: Date) => { + // For Korean locale, return only the day number without '일' + if (currentLocale === 'ko') { + return date.getDate().toString(); + } return date.toLocaleString(currentLocale, { day: 'numeric' }); diff --git a/src/shared/ui/calendar/nice-calendar.tsx b/src/shared/ui/calendar/nice-calendar.tsx index 9688ce7..05fc859 100644 --- a/src/shared/ui/calendar/nice-calendar.tsx +++ b/src/shared/ui/calendar/nice-calendar.tsx @@ -83,6 +83,10 @@ const NiceCalendar = ({ }); }; const formatDay = (locale: string | undefined, date: Date) => { + // For Korean locale, return only the day number without '일' + if (currentLocale === 'ko') { + return date.getDate().toString(); + } return date.toLocaleString(currentLocale, { day: 'numeric' });