From e7a3409edcfddc25160fa0bd306452e78bfac14f Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Mon, 3 Nov 2025 13:09:40 +0900 Subject: [PATCH] Add localization for account holder auth and search detail pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace hardcoded Korean strings with translation keys in detail pages - Add new translation keys for account holder services: - accountHolderAuth: title, detailTitle, requestDate, requestWay - accountHolderSearch: title, detailTitle - Add 'result' key to common translations for reusability - All labels now support Korean and English through i18n ๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/locales/en.json | 7 +++++++ src/locales/ko.json | 7 +++++++ .../account-holder-auth/detail-page.tsx | 20 +++++++++---------- .../account-holder-search/detail-page.tsx | 2 +- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 3dcd1ff..452b54b 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -42,6 +42,7 @@ "requestDate": "Request Date", "failed": "Failed", "clear": "Clear", + "result": "Result", "currency": { "krw": "KRW" } @@ -925,11 +926,17 @@ "paymentRequest": "Payment Request" }, "accountHolderAuth": { + "title": "Account Holder Authentication", + "detailTitle": "Account Holder Authentication Details", + "requestDate": "Request Date & Time", + "requestWay": "Request Method", "accountHolderNameMatch": "Account Holder Name Match", "accountHolderNameMismatch": "Account Holder Name Mismatch", "authFailedAccountError": "Authentication Failed (Account Error, etc.)" }, "accountHolderSearch": { + "title": "Account Holder Search", + "detailTitle": "Account Holder Search Details", "accountHolder": "Account Holder", "accountNumber": "Account Number", "accountHolderOrAccountNumber": "Account Holder/Account Number", diff --git a/src/locales/ko.json b/src/locales/ko.json index cf47ac8..c89b271 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -42,6 +42,7 @@ "requestDate": "์š”์ฒญ์ผ", "failed": "์‹คํŒจ", "clear": "์ง€์šฐ๊ธฐ", + "result": "๊ฒฐ๊ณผ", "currency": { "krw": "์›" } @@ -925,11 +926,17 @@ "paymentRequest": "๊ฒฐ์ œ ์‹ ์ฒญ" }, "accountHolderAuth": { + "title": "๊ณ„์ขŒ์ ์œ ์ธ์ฆ", + "detailTitle": "๊ณ„์ขŒ์ ์œ ์ธ์ฆ ์ƒ์„ธ", + "requestDate": "์š”์ฒญ์ผ์‹œ", + "requestWay": "์š”์ฒญ๋ฐฉ์‹", "accountHolderNameMatch": "์˜ˆ๊ธˆ์ฃผ๋ช… ์ผ์น˜", "accountHolderNameMismatch": "์˜ˆ๊ธˆ์ฃผ๋ช… ๋ถˆ์ผ์น˜", "authFailedAccountError": "์ธ์ฆ์‹คํŒจ (๊ณ„์ขŒ ์˜ค๋ฅ˜ ๋“ฑ)" }, "accountHolderSearch": { + "title": "๊ณ„์ขŒ์„ฑ๋ช…์กฐํšŒ", + "detailTitle": "๊ณ„์ขŒ์„ฑ๋ช…์กฐํšŒ ์ƒ์„ธ", "accountHolder": "์˜ˆ๊ธˆ์ฃผ", "accountNumber": "๊ณ„์ขŒ๋ฒˆํ˜ธ", "accountHolderOrAccountNumber": "์˜ˆ๊ธˆ์ฃผ/๊ณ„์ขŒ๋ฒˆํ˜ธ", diff --git a/src/pages/additional-service/account-holder-auth/detail-page.tsx b/src/pages/additional-service/account-holder-auth/detail-page.tsx index f0c77b9..7ee25e3 100644 --- a/src/pages/additional-service/account-holder-auth/detail-page.tsx +++ b/src/pages/additional-service/account-holder-auth/detail-page.tsx @@ -26,7 +26,7 @@ export const AccountHolderAuthDetailPage = () => { const { mid, tid } = location.state || {}; const [detail, setDetail] = useState(); - useSetHeaderTitle('๊ณ„์ขŒ์ ์œ ์ธ์ฆ ์ƒ์„ธ'); + useSetHeaderTitle(t('additionalService.accountHolderAuth.detailTitle')); useSetHeaderType(HeaderType.LeftArrow); useSetFooterMode(false); useSetOnBack(() => { @@ -65,38 +65,38 @@ export const AccountHolderAuthDetailPage = () => {
-
์ƒ์„ธ ์ •๋ณด
+
{t('transaction.fields.detailInfo')}
  • - ๊ฐ€๋งน์ ์ƒํ˜ธ + {t('transaction.fields.companyName')} {detail?.companyName}
  • - MID + {t('transaction.fields.mid')} {detail?.mid}
  • - ์š”์ฒญ์ผ์‹œ + {t('additionalService.accountHolderAuth.requestDate')} {getDate(detail?.requestDate)}
  • - ์€ํ–‰ + {t('transaction.fields.bank')} {detail?.bankName}
  • - ๊ณ„์ขŒ๋ฒˆํ˜ธ + {t('transaction.fields.accountNo')} {detail?.accountNo}
  • - ์˜ˆ๊ธˆ์ฃผ + {t('transaction.fields.accountHolder')} {detail?.accountName}
  • - ๊ฒฐ๊ณผ + {t('common.result')} {getAuthStatusText(t)(detail?.authStatus)}
  • - ์‹คํŒจ ์‚ฌ์œ  + {t('transaction.fields.failureReason')} {detail?.failReason ? getAuthResultStatusText(t)(detail?.failReason) : '-' }
diff --git a/src/pages/additional-service/account-holder-search/detail-page.tsx b/src/pages/additional-service/account-holder-search/detail-page.tsx index b571c70..1e852fc 100644 --- a/src/pages/additional-service/account-holder-search/detail-page.tsx +++ b/src/pages/additional-service/account-holder-search/detail-page.tsx @@ -27,7 +27,7 @@ export const AccountHolderSearchDetailPage = () => { const [detail, setDetail] = useState(); - useSetHeaderTitle(t('additionalService.services.accountHolderSearch') + ' ' + t('common.detail')); + useSetHeaderTitle(t('additionalService.accountHolderSearch.detailTitle')); useSetHeaderType(HeaderType.LeftArrow); useSetFooterMode(false); useSetOnBack(() => {