--- import { useT } from "../../i18n/translations"; const isRu = Astro.url.pathname.startsWith("/ru"); const T = useT(isRu ? "ru" : "en"); const askPlaceholder = isRu ? "Задайте вопрос с ответом да/нет..." : "Ask a yes/no question..."; const askButtonLabel = isRu ? "Спросить шар" : "Ask the Ball"; const historyTitle = isRu ? "История ответов" : "Answer History"; const clearHistoryLabel = isRu ? "Очистить" : "Clear"; const clickToAsk = isRu ? "Нажмите, чтобы спросить" : "Click to ask"; const copyLabel = isRu ? "Копировать" : "Copy"; const copiedLabel = isRu ? "Скопировано" : "Copied"; ---