From 79bb42d2cc8555e724952742074d1ef8f6d4e6f5 Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Fri, 31 Oct 2025 12:40:23 +0900 Subject: [PATCH] Localize FAQ detail page header title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace hardcoded Korean text '자주 묻는 질문' with dynamic translation key using useTranslation hook. Changes: - Import useTranslation from react-i18next - Replace hardcoded title with t('support.faq.title') - Maintains consistency with FAQ list page localization Note: FAQ list-page.tsx was already fully localized. Translation key 'support.faq.title' already exists in en.json. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/pages/support/faq/detail-page.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/support/faq/detail-page.tsx b/src/pages/support/faq/detail-page.tsx index ca6f888..e1c476b 100644 --- a/src/pages/support/faq/detail-page.tsx +++ b/src/pages/support/faq/detail-page.tsx @@ -3,7 +3,8 @@ import { PATHS } from '@/shared/constants/paths'; import { useLocation } from 'react-router'; import { useNavigate } from '@/shared/lib/hooks/use-navigate'; import { HeaderType } from '@/entities/common/model/types'; -import { +import { useTranslation } from 'react-i18next'; +import { useSetHeaderTitle, useSetHeaderType, useSetFooterMode, @@ -13,6 +14,7 @@ import { export const FaqDetailPage = () => { const { navigate } = useNavigate(); const location = useLocation(); + const { t } = useTranslation(); const [cursorId, setCursorId] = useState(0); const [seq, setSeq] = useState(''); @@ -20,7 +22,7 @@ export const FaqDetailPage = () => { const [title, setTitle] = useState(''); const [contents, setContents] = useState(''); - useSetHeaderTitle('자주 묻는 질문'); + useSetHeaderTitle(t('support.faq.title')); useSetHeaderType(HeaderType.LeftArrow); useSetFooterMode(false); useSetOnBack(() => {