--- import { useT } from "../../i18n/translations"; const isRu = Astro.url.pathname.startsWith("/ru"); const T = useT(isRu ? "ru" : "en"); const lengthOptions = isRu ? [ { value: "short", label: "Короткие" }, { value: "medium", label: "Средние" }, { value: "long", label: "Длинные" }, ] : [ { value: "short", label: "Short" }, { value: "medium", label: "Medium" }, { value: "long", label: "Long" }, ]; const startLabel = isRu ? "Начать с Lorem ipsum dolor sit amet" : "Start with Lorem ipsum dolor sit amet"; ---
{isRu ? "Результат" : "Result"}