게시글 상세 팝업 다국어 수정

This commit is contained in:
leeyongjae 2024-10-25 16:32:18 +09:00
parent 45b0063b8b
commit c8a27c5f01
3 changed files with 7 additions and 2 deletions

View File

@ -3,8 +3,11 @@
import { useEffect, useState } from 'react'
import { useAxios } from '@/hooks/useAxios'
import { handleFileDown } from '@/util/board-utils'
import { useMessage } from '@/hooks/useMessage'
export default function BoardDetailModal({ noticeNo, setOpen }) {
const { getMessage } = useMessage()
// api
const { get } = useAxios()
const [boardDetail, setBoardDetail] = useState({})
@ -46,7 +49,7 @@ export default function BoardDetailModal({ noticeNo, setOpen }) {
setOpen(false)
}}
>
닫기
{getMessage('board.sub.btn.close')}
</button>
</div>
<div className="modal-body">
@ -55,7 +58,7 @@ export default function BoardDetailModal({ noticeNo, setOpen }) {
{boardDetail.listFile && (
<dl className="community_detail-file-wrap">
<dt>첨부파일 목록</dt>
<dt>{getMessage('board.sub.fileList')}</dt>
{boardDetail.listFile.map((boardFile) => (
<dd key={boardFile.encodeFileNo}>
<button type="button" className="down" onClick={() => handleFileDown(boardFile)}>

View File

@ -376,6 +376,7 @@
"board.sub.total": "全体",
"board.sub.fileList": "添付ファイル一覧",
"board.sub.updDt": "更新日",
"board.sub.btn.close": "閉じる",
"myinfo.title": "マイプロフィール",
"myinfo.info.userId": "ユーザーID",
"myinfo.info.nameKana": "担当者名ふりがな",

View File

@ -381,6 +381,7 @@
"board.sub.total": "전체",
"board.sub.fileList": "첨부파일 목록",
"board.sub.updDt": "업데이트",
"board.sub.btn.close": "닫기",
"myinfo.title": "My profile",
"myinfo.info.userId": "사용자ID",
"myinfo.info.nameKana": "담당자명 후리가나",