diff --git a/src/client/components/SetupsView.tsx b/src/client/components/SetupsView.tsx index 8254974..531836e 100644 --- a/src/client/components/SetupsView.tsx +++ b/src/client/components/SetupsView.tsx @@ -1,8 +1,10 @@ import { useState } from "react"; +import { useTranslation } from "react-i18next"; import { useCreateSetup, useSetups } from "../hooks/useSetups"; import { SetupCard } from "./SetupCard"; export function SetupsView() { + const { t } = useTranslation(["setups", "common"]); const [newSetupName, setNewSetupName] = useState(""); const { data: setups, isLoading } = useSetups(); const createSetup = useCreateSetup(); @@ -22,7 +24,7 @@ export function SetupsView() { type="text" value={newSetupName} onChange={(e) => setNewSetupName(e.target.value)} - placeholder="New setup name..." + placeholder={t("setups:namePlaceholder")} className="flex-1 px-3 py-2 border border-gray-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-gray-400 focus:border-transparent" /> @@ -51,7 +53,7 @@ export function SetupsView() {

- Build your perfect loadout + {t("setups:emptyState.title")}

@@ -59,9 +61,9 @@ export function SetupsView() { 1
-

Create a setup

+

{t("setups:emptyState.step1Title")}

- Name your loadout for a specific trip or activity + {t("setups:emptyState.step1Description")}

@@ -70,9 +72,9 @@ export function SetupsView() { 2
-

Add items

+

{t("setups:emptyState.step2Title")}

- Pick gear from your collection to include in the setup + {t("setups:emptyState.step2Description")}

@@ -81,9 +83,9 @@ export function SetupsView() { 3
-

Track weight

+

{t("setups:emptyState.step3Title")}

- See weight breakdown and optimize your pack + {t("setups:emptyState.step3Description")}