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:
@@ -514,6 +514,46 @@
|
||||
"customerName": "Customer Name",
|
||||
"transactionConfirmation": "Transaction Confirmation"
|
||||
},
|
||||
"constants": {
|
||||
"all": "All",
|
||||
"orderNumber": "Order Number",
|
||||
"tid": "TID",
|
||||
"approval": "Approval",
|
||||
"approvalComplete": "Approval/Payment Complete",
|
||||
"cancel": "Cancel",
|
||||
"cancelShort": "Cancellation",
|
||||
"totalCancel": "Total Cancellation/Cancel",
|
||||
"totalCancelShort": "Total Cancellation",
|
||||
"refund": "Refund",
|
||||
"deposit": "Deposit",
|
||||
"waitingDeposit": "Waiting Deposit",
|
||||
"issueCancel": "Issue Cancel",
|
||||
"creditCard": "Credit Card",
|
||||
"virtualAccount": "Virtual Account",
|
||||
"accountTransfer": "Account Transfer",
|
||||
"accountSimpleTransfer": "Account Simple Payment",
|
||||
"mobilePayment": "Mobile Payment",
|
||||
"ssgMoney": "SSG Money",
|
||||
"ssgBank": "SSG Bank Account",
|
||||
"cultureLand": "Culture Gift Certificate",
|
||||
"tmoneyPay": "Tmoney Pay",
|
||||
"request": "Request",
|
||||
"requestCancel": "Request Cancel",
|
||||
"requestComplete": "Request Complete",
|
||||
"issueComplete": "Issue Complete",
|
||||
"requestFail": "Request Failed",
|
||||
"issueFail": "Issue Failed",
|
||||
"paymentComplete": "Payment Complete",
|
||||
"deliveryRegistration": "Delivery Registration",
|
||||
"deliveryComplete": "Delivery Complete",
|
||||
"purchaseConfirm": "Purchase Confirm",
|
||||
"purchaseReject": "Purchase Reject",
|
||||
"refundProcessing": "Refund Processing",
|
||||
"depositComplete": "Deposit Complete",
|
||||
"inProgress": "In Progress",
|
||||
"success": "Success",
|
||||
"failure": "Failure"
|
||||
},
|
||||
"handWrittenIssuance": {
|
||||
"step1Title": "Enter Issue Information",
|
||||
"step2Title": "Enter Issue Amount",
|
||||
|
||||
Reference in New Issue
Block a user