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:
@@ -3,6 +3,7 @@ import { PATHS } from '@/shared/constants/paths';
|
|||||||
import { useLocation } from 'react-router';
|
import { useLocation } from 'react-router';
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { HeaderType } from '@/entities/common/model/types';
|
import { HeaderType } from '@/entities/common/model/types';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
import {
|
import {
|
||||||
useSetHeaderTitle,
|
useSetHeaderTitle,
|
||||||
useSetHeaderType,
|
useSetHeaderType,
|
||||||
@@ -13,6 +14,7 @@ import {
|
|||||||
export const FaqDetailPage = () => {
|
export const FaqDetailPage = () => {
|
||||||
const { navigate } = useNavigate();
|
const { navigate } = useNavigate();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const [cursorId, setCursorId] = useState<number>(0);
|
const [cursorId, setCursorId] = useState<number>(0);
|
||||||
const [seq, setSeq] = useState<string>('');
|
const [seq, setSeq] = useState<string>('');
|
||||||
@@ -20,7 +22,7 @@ export const FaqDetailPage = () => {
|
|||||||
const [title, setTitle] = useState<string>('');
|
const [title, setTitle] = useState<string>('');
|
||||||
const [contents, setContents] = useState<string>('');
|
const [contents, setContents] = useState<string>('');
|
||||||
|
|
||||||
useSetHeaderTitle('자주 묻는 질문');
|
useSetHeaderTitle(t('support.faq.title'));
|
||||||
useSetHeaderType(HeaderType.LeftArrow);
|
useSetHeaderType(HeaderType.LeftArrow);
|
||||||
useSetFooterMode(false);
|
useSetFooterMode(false);
|
||||||
useSetOnBack(() => {
|
useSetOnBack(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user