Convert transaction constants to i18n-compatible getter functions

- Convert all hardcoded constant arrays to functions accepting TFunction
- Add transaction.constants namespace with 40+ translation keys
- Update contant.ts: All exports now use get* prefix (e.g., getCashReceiptPurposeTypeBtnGroup)
- Replace ko/en properties with single name property using t() function

Updated constants:
- getAllTransactionMoidTidOptionsGroup(t)
- getAllTransactionStatusCodeBtnGroup(t)
- getAllTransactionServiceCodeOptionsGroup(t)
- getAllTransactionStatusCode(t)
- getCashReceiptPurposeTypeBtnGroup(t)
- getCashReceiptTransactionTypeBtnGroup(t)
- getCashReceiptProcessResultBtnGroup(t)
- getEscrowSearchTypeOptionsGroup(t)
- getEscrowDeliveryStatusBtnGroup(t)
- getEscrowSettlementStatusBtnGroup(t)
- getBillingSearchTypeOptionsGroup(t)
- getBillingRequestStatusBtnGroup(t)
- getBillingProcessResultBtnGroup(t)
- getBillingPaymentMethodBtnGroup(t)

Updated components (9 files):
- Filter components: all-transaction, cash-receipt, billing, escrow
- List pages: billing, cash-receipt, escrow
- UI components: list-item, important-info-section

All constants now properly 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:
Jay Sheen
2025-10-30 16:36:30 +09:00
parent e067fc8d4f
commit 29f69c248c
12 changed files with 271 additions and 163 deletions

View File

@@ -518,6 +518,46 @@
"customerName": "고객명",
"transactionConfirmation": "거래 확인서"
},
"constants": {
"all": "전체",
"orderNumber": "주문번호",
"tid": "TID",
"approval": "승인",
"approvalComplete": "승인/입금완료",
"cancel": "취소",
"cancelShort": "후취소",
"totalCancel": "전취소/취소",
"totalCancelShort": "전취소",
"refund": "환불",
"deposit": "입금",
"waitingDeposit": "입금대기",
"issueCancel": "채번취소",
"creditCard": "신용카드",
"virtualAccount": "가상계좌",
"accountTransfer": "계좌이체",
"accountSimpleTransfer": "계좌간편결제",
"mobilePayment": "휴대폰",
"ssgMoney": "SSG 머니",
"ssgBank": "SSG 은행계좌",
"cultureLand": "문화상품권",
"tmoneyPay": "티머니페이",
"request": "요청",
"requestCancel": "요청취소",
"requestComplete": "요청완료",
"issueComplete": "발급완료",
"requestFail": "요청실패",
"issueFail": "발급실패",
"paymentComplete": "결제완료",
"deliveryRegistration": "배송등록",
"deliveryComplete": "배송완료",
"purchaseConfirm": "구매확인",
"purchaseReject": "구매거절",
"refundProcessing": "환불처리",
"depositComplete": "지급완료",
"inProgress": "진행중",
"success": "성공",
"failure": "실패"
},
"handWrittenIssuance": {
"step1Title": "발행 정보 입력",
"step2Title": "발행 금액 입력",