Add comprehensive i18n localization to transaction UI components

- Localize 23 transaction UI component files
- Add 150+ translation keys to ko.json and en.json
- Organized translations under transaction namespace:
  * transaction.bottomSheet - Bottom sheet modals
  * transaction.sections - Section titles
  * transaction.fields - Field labels (90+ keys)
  * transaction.cancel - Cancellation flows
  * transaction.handWrittenIssuance - Manual issuance forms
  * transaction.list - List actions

Updated files:
- Bottom sheets: escrow-mail-resend, cash-receipt-purpose-update
- Sections: billing-info, part-cancel-info, detail-info, issue-info,
  escrow-info, important-info, payment-info, transaction-info,
  settlement-info, merchant-info, amount-info, cancel-bank-group,
  cancel-password-group
- Lists: list-item, billing-list, cash-receipt-list
- Cancel flows: all-cancel, part-cancel, prevent-bond
- Issuance: hand-written-issuance-step1, hand-written-issuance-step2

🤖 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:14:25 +09:00
parent 5f420c212b
commit e067fc8d4f
25 changed files with 847 additions and 384 deletions

View File

@@ -1,4 +1,5 @@
import moment from 'moment';
import { useTranslation } from 'react-i18next';
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
import { InfoSectionKeys, InfoSectionProps, TransactionCategory } from '../../model/types';
import { NumericFormat } from 'react-number-format';
@@ -12,15 +13,16 @@ export const TransactionInfoSection = ({
isOpen,
onClickToOpenInfo
}: InfoSectionProps) => {
const { t } = useTranslation();
const subItems: Record<string, Record<string, string>> = {
buyerName: {name: '구매자명', type: 'string'},
buyerEmail: {name: '이메일', type: 'string'},
buyerTel: {name: '전화번호', type: 'string'},
cancelReason: {name: '취소사유', type: 'string'},
cancelRequestor: {name: '취소요청자', type: 'string'},
partialCancel: {name: '부분취소', type: 'string'},
cashReceiptIssue: {name: '현금영수증발행', type: 'string'},
buyerName: {name: t('transaction.fields.buyerName'), type: 'string'},
buyerEmail: {name: t('transaction.fields.buyerEmail'), type: 'string'},
buyerTel: {name: t('transaction.fields.buyerTel'), type: 'string'},
cancelReason: {name: t('transaction.fields.cancelReason'), type: 'string'},
cancelRequestor: {name: t('transaction.fields.cancelRequestor'), type: 'string'},
partialCancel: {name: t('transaction.fields.partialCancel'), type: 'string'},
cashReceiptIssue: {name: t('transaction.fields.cashReceiptIssue'), type: 'string'},
};
const openSubItems: Record<string, Array<string>> = {
@@ -106,47 +108,47 @@ export const TransactionInfoSection = ({
return (
<>
<div className="txn-section">
<div
<div
className="section-title with-toggle"
onClick={ () => onClickToSetOpenInfo() }
>
<SectionTitleArrow isOpen={ isOpen }></SectionTitleArrow>
{t('transaction.sections.transactionInfo')} <SectionTitleArrow isOpen={ isOpen }></SectionTitleArrow>
</div>
<SlideDown className={'my-dropdown-slidedown'}>
{ !!isOpen &&
{ !!isOpen &&
<ul className="kv-list">
{ (transactionCategory === TransactionCategory.AllTransaction) &&
{ (transactionCategory === TransactionCategory.AllTransaction) &&
subLi()
}
{ (transactionCategory === TransactionCategory.Escrow) &&
{ (transactionCategory === TransactionCategory.Escrow) &&
<>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="k">·&nbsp;&nbsp;{t('transaction.fields.buyerName')}</span>
<span className="v">{ transactionInfo?.buyerName }</span>
</li>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="k">·&nbsp;&nbsp;{t('transaction.fields.buyerEmail')}</span>
<span className="v">{ transactionInfo?.buyerEmail }</span>
</li>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="k">·&nbsp;&nbsp;{t('transaction.fields.buyerTel')}</span>
<span className="v">{ transactionInfo?.buyerTel }</span>
</li>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="k">·&nbsp;&nbsp;{t('transaction.fields.cancelReason')}</span>
<span className="v">{ transactionInfo?.cancelReason }</span>
</li>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="k">·&nbsp;&nbsp;{t('transaction.fields.cancelRequestor')}</span>
<span className="v">{ transactionInfo?.cancelRequestor }</span>
</li>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="k">·&nbsp;&nbsp;{t('transaction.fields.partialCancel')}</span>
<span className="v">{ transactionInfo?.partialCancel }</span>
</li>
{ (serviceCode === '02' || serviceCode === '03') &&
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="k">·&nbsp;&nbsp;{t('transaction.fields.cashReceiptIssue')}</span>
<span className="v">{ transactionInfo?.cashReceiptIssue }</span>
</li>
}