--- import { useT } from "../../i18n/translations"; const isRu = Astro.url.pathname.startsWith("/ru"); const T = useT(isRu ? "ru" : "en"); const i18n = { typeLabel: isRu ? "Тип градиента" : "Gradient type", stopsLabel: isRu ? "Количество цветов" : "Color stops", generate: T.generate, copied: T.copied, copy: T.copy, cssCode: isRu ? "CSS-код" : "CSS code", colorStops: isRu ? "Цветовые точки" : "Color stops", types: { linear: isRu ? "Линейный" : "Linear", radial: isRu ? "Радиальный" : "Radial", conic: isRu ? "Конический" : "Conic", }, }; ---