Apply t('home.count') localization to cash-receipt list page

- 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 <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-11-04 16:57:24 +09:00
parent fa5a56105d
commit b19334d08c
3 changed files with 3 additions and 19 deletions

View File

@@ -366,7 +366,6 @@
"todaySettlement": "Today's Settlement", "todaySettlement": "Today's Settlement",
"approvalCount": "Approved", "approvalCount": "Approved",
"cancelCount": "Cancelled", "cancelCount": "Cancelled",
"count": "",
"depositCompleted": "Completed", "depositCompleted": "Completed",
"settlementLimit": "Settlement Limit", "settlementLimit": "Settlement Limit",
"percentRemaining": "% remaining", "percentRemaining": "% remaining",
@@ -378,7 +377,7 @@
"currencyWon": "", "currencyWon": "",
"currencySymbol": "₩", "currencySymbol": "₩",
"money": "₩{{value}}", "money": "₩{{value}}",
"count": "{{value}} txns", "count": "{{value}}",
"goToSales": "Go to Sales", "goToSales": "Go to Sales",
"transactionInsights": "Transaction Insights", "transactionInsights": "Transaction Insights",
"basedOnLastWeek": "Based on Last Week", "basedOnLastWeek": "Based on Last Week",

View File

@@ -366,7 +366,6 @@
"todaySettlement": "오늘 정산", "todaySettlement": "오늘 정산",
"approvalCount": "승인 건수", "approvalCount": "승인 건수",
"cancelCount": "취소 건수", "cancelCount": "취소 건수",
"count": "건",
"depositCompleted": "입금완료", "depositCompleted": "입금완료",
"settlementLimit": "정산한도", "settlementLimit": "정산한도",
"percentRemaining": "% 남음", "percentRemaining": "% 남음",

View File

@@ -1,7 +1,6 @@
import moment from 'moment'; import moment from 'moment';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { NumericFormat } from 'react-number-format';
import { IMAGE_ROOT } from '@/shared/constants/common'; import { IMAGE_ROOT } from '@/shared/constants/common';
import { PATHS } from '@/shared/constants/paths'; import { PATHS } from '@/shared/constants/paths';
import { useNavigate } from '@/shared/lib/hooks/use-navigate'; 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.money', { value: new Intl.NumberFormat('en-US').format(approvalAmount || 0) })}
</strong> </strong>
<span className="count"> <span className="count">
( ({t('home.count', { value: new Intl.NumberFormat('en-US').format(approvalCount || 0) })})
<NumericFormat
value={ approvalCount }
thousandSeparator
displayType="text"
suffix='건)'
></NumericFormat>
</span> </span>
</div> </div>
<div className="row"> <div className="row">
@@ -253,14 +246,7 @@ export const CashReceiptListPage = () => {
{t('home.money', { value: new Intl.NumberFormat('en-US').format(cancelAmount || 0) })} {t('home.money', { value: new Intl.NumberFormat('en-US').format(cancelAmount || 0) })}
</strong> </strong>
<span className="count"> <span className="count">
( ({t('home.count', { value: new Intl.NumberFormat('en-US').format(cancelCount || 0) })})
<NumericFormat
value={ cancelCount }
allowNegative={ true }
thousandSeparator
displayType="text"
suffix='건)'
></NumericFormat>
</span> </span>
</div> </div>
</div> </div>