fix missing i18n keys (#18309)

This commit is contained in:
Josh Hawkins
2025-05-19 16:45:02 -05:00
committed by GitHub
parent 8a143b4284
commit afe513336c
19 changed files with 103 additions and 46 deletions
@@ -4,6 +4,7 @@ import { Button } from "../ui/button";
import { FaFlag } from "react-icons/fa";
import { TimelineType } from "@/types/timeline";
import { isMobile } from "react-device-detect";
import { useTranslation } from "react-i18next";
type MobileTimelineDrawerProps = {
selected: TimelineType;
@@ -13,6 +14,7 @@ export default function MobileTimelineDrawer({
selected,
onSelect,
}: MobileTimelineDrawerProps) {
const { t } = useTranslation(["views/events"]);
const [drawer, setDrawer] = useState(false);
if (!isMobile) {
@@ -38,7 +40,7 @@ export default function MobileTimelineDrawer({
setDrawer(false);
}}
>
Timeline
{t("timeline")}
</div>
<div
className={`mx-4 w-full py-2 text-center smart-capitalize ${selected == "events" ? "rounded-lg bg-secondary" : ""}`}
@@ -47,7 +49,7 @@ export default function MobileTimelineDrawer({
setDrawer(false);
}}
>
Events
{t("events.label")}
</div>
</DrawerContent>
</Drawer>