Add localization for payment method and currency in transaction/settlement modules
- Add payment method name localization mapping for both Korean and English - Support payment methods: Credit Card, Virtual Account, Account Transfer, Simple Account Transfer, Mobile Payment, SSG Money, SSG Bank Account, Culture Voucher, Tmoney Pay - Update transaction list to use localized currency format (ko: 9,999,999원, en: ₩9,999,999) - Apply localization to payment method dropdown options in filters and list pages - Update settlement transaction info to display localized payment method names 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -197,16 +197,37 @@ export const AllTransactionListPage = () => {
|
||||
let rs = [];
|
||||
if(!!serviceCodeOptions && serviceCodeOptions.length > 0)
|
||||
for(let i=0;i<serviceCodeOptions.length;i++){
|
||||
const option = serviceCodeOptions[i];
|
||||
const localizedName = getLocalizedServiceCodeName(option?.name);
|
||||
rs.push(
|
||||
<option
|
||||
<option
|
||||
key={`key-${i}`}
|
||||
value={serviceCodeOptions[i]?.value}
|
||||
>{ serviceCodeOptions[i]?.name }</option>
|
||||
value={option?.value}
|
||||
>{ localizedName }</option>
|
||||
)
|
||||
}
|
||||
return rs;
|
||||
};
|
||||
|
||||
const getLocalizedServiceCodeName = (name?: string): string => {
|
||||
if (!name) return '';
|
||||
|
||||
const nameMap: Record<string, string> = {
|
||||
'전체': t('transaction.constants.all'),
|
||||
'신용카드': t('transaction.constants.creditCard'),
|
||||
'계좌이체': t('transaction.constants.accountTransfer'),
|
||||
'가상계좌': t('transaction.constants.virtualAccount'),
|
||||
'휴대폰': t('transaction.constants.mobilePayment'),
|
||||
'문화상품권': t('transaction.constants.cultureLand'),
|
||||
'(구)SSG머니': t('transaction.constants.ssgMoney'),
|
||||
'SSG은행계좌결제': t('transaction.constants.ssgBank'),
|
||||
'계좌간편결제': t('transaction.constants.accountSimpleTransfer'),
|
||||
'티머니페이': t('transaction.constants.tmoneyPay'),
|
||||
};
|
||||
|
||||
return nameMap[name] || name;
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
callServiceCodeOptions();
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user