diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx index 1ab62ed..e17dc75 100644 --- a/src/pages/NotFound.tsx +++ b/src/pages/NotFound.tsx @@ -1,8 +1,11 @@ +import { useContext } from "react" import styled from "styled-components" import { Helmet } from "react-helmet-async" import MainContent from "../components/MainContent" +import { globalContext } from "../globalContext" + const StyledNotFound = styled(MainContent)` text-align: center; ` @@ -12,6 +15,8 @@ const Styled404 = styled.h1` ` const NotFound = () => { + const { globalState } = useContext(globalContext) + return ( <> @@ -30,7 +35,9 @@ const NotFound = () => { 404
- Page was not found :( + {globalState.locale == "en" + ? "Page was not found :(" + : "페이지를 찾을 수 없습니다 :("}
)