refactor: remove localization
Why: - I was doing half-ass job at it in the first place (code-wise) - maintaining sites for more than one locale proved to be more difficult than initially anticipated - having more than one local does not add much value - overall not worth it
This commit is contained in:
parent
e26738ee07
commit
4404518359
30 changed files with 99 additions and 691 deletions
|
@ -1,4 +1,3 @@
|
|||
import { useContext } from "react"
|
||||
import { Link } from "react-router-dom"
|
||||
import ReactTooltip from "react-tooltip"
|
||||
|
||||
|
@ -6,23 +5,18 @@ import HeaderButton from "../HeaderButton"
|
|||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
||||
import { faSearch } from "@fortawesome/free-solid-svg-icons"
|
||||
|
||||
import { globalContext } from "../../../globalContext"
|
||||
|
||||
const SearchButton = () => {
|
||||
const { globalState } = useContext(globalContext)
|
||||
const { locale } = globalState
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<Link data-tip data-for="search" to={`/${locale}/search`}>
|
||||
<Link data-tip data-for="search" to="/search">
|
||||
<HeaderButton>
|
||||
<FontAwesomeIcon icon={faSearch} />
|
||||
</HeaderButton>
|
||||
</Link>
|
||||
</div>
|
||||
<ReactTooltip id="search" type="dark" effect="solid">
|
||||
<span>{locale == "en" ? "Search" : "검색"}</span>
|
||||
<span>Search</span>
|
||||
</ReactTooltip>
|
||||
</>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue