Add comprehensive i18n localization to settlement entity
- Convert settlement constants to i18n-compatible getter functions - Add 28+ translation keys to settlement namespace - Localize 11 settlement UI components Constant conversions: - getSettlementPeriodTypeBtnGroup(t) - getSettlementPaymentMethodOptionsGroup(t) Translation keys added: - settlement.periodType.* (settlementDate, transactionDate) - settlement.searchCriteria, searchPeriod - settlement.settlementCompleted, depositScheduled - settlement.settlementInfo, transferStatus, transferId, transferTime - settlement.bankName, accountNumber, depositorName - settlement.settlementDepositAmount, errorReason - settlement.transactionDetailInfo - settlement.cardBankTelecom, approvalAccountPhone - common.weekdays.* (sun-sat) - common.currencyUnit Localized components: - filter/list-filter.tsx - calandar-wrap.tsx, calendar-grid.tsx - calendar-settlement-item.tsx, calandar-amount-row.tsx - info-wrap/settlement-info-wrap.tsx - info-wrap/transaction-info-wrap.tsx - list-summary-extend-settlement.tsx - list-summary-extend-transaction.tsx All settlement components now support Korean/English language switching. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
import { TFunction } from 'i18next';
|
||||
import { SettlementPaymentMethod, SettlementPeriodType } from './types';
|
||||
|
||||
export const SettlementPeriodTypeBtnGroup = [
|
||||
{name: '정산일자', value: SettlementPeriodType.SETTLEMENT_DATE },
|
||||
{name: '거래일자', value: SettlementPeriodType.TRANSACTION_DATE }
|
||||
export const getSettlementPeriodTypeBtnGroup = (t: TFunction) => [
|
||||
{name: t('settlement.periodType.settlementDate'), value: SettlementPeriodType.SETTLEMENT_DATE },
|
||||
{name: t('settlement.periodType.transactionDate'), value: SettlementPeriodType.TRANSACTION_DATE }
|
||||
];
|
||||
export const SettlementPaymentMethodOptionsGroup = [
|
||||
{name: '전체', value: SettlementPaymentMethod.ALL},
|
||||
{name: '신용카드', value: SettlementPaymentMethod.CREDIT_CARD},
|
||||
{name: '가상계좌', value: SettlementPaymentMethod.VIRTUAL_ACCOUNT},
|
||||
{name: '계좌이체', value: SettlementPaymentMethod.ACCOUNT_TRANSFER},
|
||||
{name: '계좌간편결제', value: SettlementPaymentMethod.ACCOUNT_EASY_PAY},
|
||||
{name: '휴대폰', value: SettlementPaymentMethod.MOBILE_PAYMENT},
|
||||
{name: 'SSG 머니', value: SettlementPaymentMethod.SSG_MONEY},
|
||||
{name: 'SSG 은행계좌', value: SettlementPaymentMethod.SSG_BANK_ACCOUNT},
|
||||
{name: '문화상품권', value: SettlementPaymentMethod.CULTURE_VOUCHER},
|
||||
{name: '티머니페이', value: SettlementPaymentMethod.TMONEY_PAY},
|
||||
|
||||
export const getSettlementPaymentMethodOptionsGroup = (t: TFunction) => [
|
||||
{name: t('transaction.constants.all'), value: SettlementPaymentMethod.ALL},
|
||||
{name: t('transaction.constants.creditCard'), value: SettlementPaymentMethod.CREDIT_CARD},
|
||||
{name: t('transaction.constants.virtualAccount'), value: SettlementPaymentMethod.VIRTUAL_ACCOUNT},
|
||||
{name: t('transaction.constants.accountTransfer'), value: SettlementPaymentMethod.ACCOUNT_TRANSFER},
|
||||
{name: t('transaction.constants.accountSimpleTransfer'), value: SettlementPaymentMethod.ACCOUNT_EASY_PAY},
|
||||
{name: t('transaction.constants.mobilePayment'), value: SettlementPaymentMethod.MOBILE_PAYMENT},
|
||||
{name: t('transaction.constants.ssgMoney'), value: SettlementPaymentMethod.SSG_MONEY},
|
||||
{name: t('transaction.constants.ssgBank'), value: SettlementPaymentMethod.SSG_BANK_ACCOUNT},
|
||||
{name: t('transaction.constants.cultureLand'), value: SettlementPaymentMethod.CULTURE_VOUCHER},
|
||||
{name: t('transaction.constants.tmoneyPay'), value: SettlementPaymentMethod.TMONEY_PAY},
|
||||
];
|
||||
Reference in New Issue
Block a user