Localize FAQ detail page header title

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 <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-10-31 12:40:23 +09:00
parent 811fff80ab
commit 79bb42d2cc

View File

@@ -3,6 +3,7 @@ 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 { useTranslation } from 'react-i18next';
import {
useSetHeaderTitle,
useSetHeaderType,
@@ -13,6 +14,7 @@ import {
export const FaqDetailPage = () => {
const { navigate } = useNavigate();
const location = useLocation();
const { t } = useTranslation();
const [cursorId, setCursorId] = useState<number>(0);
const [seq, setSeq] = useState<string>('');
@@ -20,7 +22,7 @@ export const FaqDetailPage = () => {
const [title, setTitle] = useState<string>('');
const [contents, setContents] = useState<string>('');
useSetHeaderTitle('자주 묻는 질문');
useSetHeaderTitle(t('support.faq.title'));
useSetHeaderType(HeaderType.LeftArrow);
useSetFooterMode(false);
useSetOnBack(() => {