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

@@ -3,6 +3,7 @@ import { AllTransactionCancelInfoResponse } from '../model/types';
import { NumericFormat } from 'react-number-format';
import { AllTransactionCancelSectionPasswordGroup } from './section/all-transaction-cancel-section-password-group';
import { AllTransactionCancelSectionBankGroup } from './section/all-transaction-cancel-section-bank-group';
import { useTranslation } from 'react-i18next';
export interface AllTransactionPartCancelProps extends AllTransactionCancelInfoResponse {
serviceCode: string;
@@ -63,6 +64,7 @@ export const AllTransactionPartCancel = ({
totalCancelAmount,
setTotalCancelAmount
}: AllTransactionPartCancelProps) => {
const { t } = useTranslation();
const [cancelTotalCancelAmountReadonly, setCancelTotalCancelAmountReadonly] = useState<boolean>(true);
const [cancelSupplyAmountDisabled, setCancelSupplyAmountDisabled] = useState<boolean>(false);
const [cancelGoodsVatDisabled, setCancelGoodsVatDisabled] = useState<boolean>(false);
@@ -180,20 +182,20 @@ export const AllTransactionPartCancel = ({
<div className="amount-info">
<ul className="amount-list">
<li className="amount-item">
<span className="label">·&nbsp;&nbsp; </span>
<span className="label">·&nbsp;&nbsp;{t('transaction.fields.totalBalance')}</span>
<span className="value">
<NumericFormat
value={ remainAmount }
value={ remainAmount }
thousandSeparator
displayType="text"
></NumericFormat>
</span>
</li>
<li className="amount-item">
<span className="label">·&nbsp;&nbsp; </span>
<span className="label">·&nbsp;&nbsp;{t('transaction.fields.totalCancelAmount')}</span>
<span className="value">
<NumericFormat
value={ totalCancelAmount }
value={ totalCancelAmount }
displayType="input"
allowNegative={ false }
max={ remainAmount }
@@ -215,19 +217,19 @@ export const AllTransactionPartCancel = ({
<thead>
<tr>
<th className="header-empty"></th>
<th className="header-balance"></th>
<th className="header-cancel"></th>
<th className="header-balance">{t('transaction.cancel.partCancel.balance')}</th>
<th className="header-cancel">{t('transaction.cancel.partCancel.cancelAmount')}</th>
</tr>
</thead>
<tbody>
<tr>
<td className="row-label"></td>
<td className="row-label">{t('transaction.cancel.partCancel.taxableAmount')}</td>
<td className="row-balance">
<NumericFormat
value={ supplyAmount }
value={ supplyAmount }
thousandSeparator
displayType="text"
></NumericFormat>
></NumericFormat>
</td>
<td className="row-cancel">
<NumericFormat
@@ -241,13 +243,13 @@ export const AllTransactionPartCancel = ({
</td>
</tr>
<tr>
<td className="row-label"></td>
<td className="row-label">{t('transaction.cancel.partCancel.taxAmount')}</td>
<td className="row-balance">
<NumericFormat
value={ goodsVat }
value={ goodsVat }
thousandSeparator
displayType="text"
></NumericFormat>
></NumericFormat>
</td>
<td className="row-cancel">
<NumericFormat
@@ -261,10 +263,10 @@ export const AllTransactionPartCancel = ({
</td>
</tr>
<tr>
<td className="row-label"></td>
<td className="row-label">{t('transaction.cancel.partCancel.taxFree')}</td>
<td className="row-balance">
<NumericFormat
value={ taxFreeAmount }
value={ taxFreeAmount }
thousandSeparator
displayType="text"
></NumericFormat>
@@ -281,10 +283,10 @@ export const AllTransactionPartCancel = ({
</td>
</tr>
<tr>
<td className="row-label"></td>
<td className="row-label">{t('transaction.cancel.partCancel.serviceFee')}</td>
<td className="row-balance">
<NumericFormat
value={ serviceAmount }
value={ serviceAmount }
thousandSeparator
displayType="text"
></NumericFormat>