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:
@@ -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",
|
||||
|
||||
@@ -366,7 +366,6 @@
|
||||
"todaySettlement": "오늘 정산",
|
||||
"approvalCount": "승인 건수",
|
||||
"cancelCount": "취소 건수",
|
||||
"count": "건",
|
||||
"depositCompleted": "입금완료",
|
||||
"settlementLimit": "정산한도",
|
||||
"percentRemaining": "% 남음",
|
||||
|
||||
@@ -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) })}
|
||||
</strong>
|
||||
<span className="count">
|
||||
(
|
||||
<NumericFormat
|
||||
value={ approvalCount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
suffix='건)'
|
||||
></NumericFormat>
|
||||
({t('home.count', { value: new Intl.NumberFormat('en-US').format(approvalCount || 0) })})
|
||||
</span>
|
||||
</div>
|
||||
<div className="row">
|
||||
@@ -253,14 +246,7 @@ export const CashReceiptListPage = () => {
|
||||
{t('home.money', { value: new Intl.NumberFormat('en-US').format(cancelAmount || 0) })}
|
||||
</strong>
|
||||
<span className="count">
|
||||
(
|
||||
<NumericFormat
|
||||
value={ cancelCount }
|
||||
allowNegative={ true }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
suffix='건)'
|
||||
></NumericFormat>
|
||||
({t('home.count', { value: new Intl.NumberFormat('en-US').format(cancelCount || 0) })})
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user