From b19334d08c6e94380e58422509ba7419e4f67856 Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Tue, 4 Nov 2025 16:57:24 +0900 Subject: [PATCH] Apply t('home.count') localization to cash-receipt list page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace NumericFormat with t('home.count') for transaction counts - approvalCount (승인 건수) - cancelCount (취소 건수) - Remove NumericFormat import from cash-receipt list-page.tsx - Remove duplicate count keys from locale files (keeping home.count) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/locales/en.json | 3 +-- src/locales/ko.json | 1 - .../transaction/cash-receipt/list-page.tsx | 18 ++---------------- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index e3e220a..4069a80 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -366,7 +366,6 @@ "todaySettlement": "Today's Settlement", "approvalCount": "Approved", "cancelCount": "Cancelled", - "count": "", "depositCompleted": "Completed", "settlementLimit": "Settlement Limit", "percentRemaining": "% remaining", @@ -378,7 +377,7 @@ "currencyWon": "", "currencySymbol": "₩", "money": "₩{{value}}", - "count": "{{value}} txns", + "count": "{{value}}", "goToSales": "Go to Sales", "transactionInsights": "Transaction Insights", "basedOnLastWeek": "Based on Last Week", diff --git a/src/locales/ko.json b/src/locales/ko.json index 0c9efdc..11aa32c 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -366,7 +366,6 @@ "todaySettlement": "오늘 정산", "approvalCount": "승인 건수", "cancelCount": "취소 건수", - "count": "건", "depositCompleted": "입금완료", "settlementLimit": "정산한도", "percentRemaining": "% 남음", diff --git a/src/pages/transaction/cash-receipt/list-page.tsx b/src/pages/transaction/cash-receipt/list-page.tsx index 2a990ba..0a2a28a 100644 --- a/src/pages/transaction/cash-receipt/list-page.tsx +++ b/src/pages/transaction/cash-receipt/list-page.tsx @@ -1,7 +1,6 @@ import moment from 'moment'; import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { NumericFormat } from 'react-number-format'; import { IMAGE_ROOT } from '@/shared/constants/common'; import { PATHS } from '@/shared/constants/paths'; import { useNavigate } from '@/shared/lib/hooks/use-navigate'; @@ -238,13 +237,7 @@ export const CashReceiptListPage = () => { {t('home.money', { value: new Intl.NumberFormat('en-US').format(approvalAmount || 0) })} - ( - + ({t('home.count', { value: new Intl.NumberFormat('en-US').format(approvalCount || 0) })})
@@ -253,14 +246,7 @@ export const CashReceiptListPage = () => { {t('home.money', { value: new Intl.NumberFormat('en-US').format(cancelAmount || 0) })} - ( - + ({t('home.count', { value: new Intl.NumberFormat('en-US').format(cancelCount || 0) })})