59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
TypeScript
import type { IProject } from "@/types";
|
|
|
|
const BASE: Omit<
|
|
IProject,
|
|
| "id"
|
|
| "title"
|
|
| "englishTitle"
|
|
| "city"
|
|
| "englishCity"
|
|
| "buildFilename"
|
|
| "image"
|
|
> = {
|
|
description: "",
|
|
stage: 0,
|
|
releaseDate: "2026-01-01T00:00:00.000Z",
|
|
tags: [],
|
|
};
|
|
|
|
const RU_PROJECTS: IProject[] = [
|
|
{
|
|
...BASE,
|
|
id: "revolution-towers",
|
|
title: "МФК «Revolution towers»",
|
|
englishTitle: "Revolution Towers",
|
|
city: "Россия, Екатеринбург",
|
|
englishCity: "Russia, Yekaterinburg",
|
|
buildFilename: "nksJukovaDev",
|
|
image: "/img/projects/nks.jpg",
|
|
},
|
|
{
|
|
...BASE,
|
|
id: "life-residence",
|
|
title: "ЖК «Life Резиденция»",
|
|
englishTitle: "Life Residence",
|
|
city: "Россия, Тюмень",
|
|
englishCity: "Russia, Tyumen",
|
|
buildFilename: "lifeResidence",
|
|
image: "/img/projects/liferes.jpg",
|
|
},
|
|
];
|
|
|
|
const EN_PROJECTS: IProject[] = [
|
|
{
|
|
...BASE,
|
|
id: "upside-towers",
|
|
title: "Upside Towers",
|
|
englishTitle: "Upside Towers",
|
|
city: "Russia, Moscow",
|
|
englishCity: "Russia, Moscow",
|
|
buildFilename: "upsideTowersDevEn",
|
|
image: "/img/projects/upside.jpg",
|
|
},
|
|
];
|
|
|
|
/** Demo projects for the streaming section, selected by UI language. */
|
|
export function getStreamingProjects(i18nLanguage: string): IProject[] {
|
|
return i18nLanguage.startsWith("ru") ? RU_PROJECTS : EN_PROJECTS;
|
|
}
|