diff --git a/index.html b/index.html index d59af7b..d0acdcb 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - fallout2-ce + Fallout 2 Community Edition
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 746f0bd..05e64f4 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,41 +1,46 @@ +import useLang from "@/lib/hooks/useLang"; +import translations from "@/locale"; import { SiDiscord, SiTelegram } from "react-icons/si"; // TODO: plz update the links -const Footer = () => ( - -); + + ); +}; export default Footer; diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 2cf8ee7..4f325f4 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,5 +1,5 @@ import { Link } from "react-router"; -import LangToggle from "./LangToggle"; +import LangToggle from "@/components/LangToggle"; const Header = () => (
diff --git a/src/lib/stores/langStore.ts b/src/lib/stores/langStore.ts index 4434951..f6babc7 100644 --- a/src/lib/stores/langStore.ts +++ b/src/lib/stores/langStore.ts @@ -1,6 +1,6 @@ import { atomWithStorage } from "jotai/utils"; -const SupportedLangs = ["sys", "en", "ru"] as const; +const SupportedLangs = ["sys", "en"] as const; type LangWithSys = (typeof SupportedLangs)[number]; type Lang = Exclude; diff --git a/src/locale.ts b/src/locale.ts new file mode 100644 index 0000000..41a58f1 --- /dev/null +++ b/src/locale.ts @@ -0,0 +1,13 @@ +import type { Lang } from "@/lib/stores/langStore"; + +type TranslationKey = "developedBy" | "title"; + +const translations: Record> = { + en: { + developedBy: "Developed with ❤️ by", + title: "Fallout 2 Community Edition", + }, +}; + +export default translations; +export type { TranslationKey };