0}>
{t.mission.title}
{m.mission.text}
{t.sections.goals}
{t.sections.goalText}
{t.directions.title}
{m.directions.map(d => {d.title}
{d.text ?? t.tbc}
)}
- {[t.sections.founder,t.sections.leadership,t.sections.board].map(label => )}
+
+
{t.sections.founder}
{people.founder}
+
{t.sections.leadership}
{t.sections.director}
{people.director}
+
+
}
diff --git a/src/globals/Foundation.ts b/src/globals/Foundation.ts
new file mode 100644
index 0000000..35b30c9
--- /dev/null
+++ b/src/globals/Foundation.ts
@@ -0,0 +1,21 @@
+import type { GlobalConfig } from 'payload'
+
+/** Руководство фонда. Имена одинаковы на всех языках, должности переводятся сайтом. Пустое поле — сайт покажет сведения по умолчанию. */
+export const Foundation: GlobalConfig = {
+ slug: 'foundation',
+ label: 'Руководство фонда',
+ access: { read: () => true },
+ fields: [
+ { name: 'founder', label: 'Учредитель (ФИО)', type: 'text' },
+ { name: 'director', label: 'Директор (ФИО)', type: 'text' },
+ {
+ name: 'board',
+ label: 'Попечительский совет',
+ type: 'array',
+ fields: [
+ { name: 'name', label: 'ФИО', type: 'text', required: true },
+ { name: 'role', label: 'Должность', type: 'select', required: true, defaultValue: 'member', options: [{ label: 'Председатель', value: 'chair' }, { label: 'Член совета', value: 'member' }] },
+ ],
+ },
+ ],
+}
diff --git a/src/i18n/en.ts b/src/i18n/en.ts
index ec30c7b..73a77c6 100644
--- a/src/i18n/en.ts
+++ b/src/i18n/en.ts
@@ -1,7 +1,7 @@
import type { Dict } from './types'
export const en: Dict = {
- sections: {"about": "About the foundation", "contacts": "Contacts", "goals": "Goals", "goalText": "Preserve the legacy of outstanding cultural figures and artists, pass it on to new generations, and support cultural and educational initiatives.", "founder": "Founder", "leadership": "Leadership", "board": "Board of trustees", "read": "Read", "source": "Source", "review": "Translation awaiting review."},
+ sections: {"about": "About the foundation", "contacts": "Contacts", "goals": "Goals", "goalText": "Preserve the legacy of outstanding cultural figures and artists, pass it on to new generations, and support cultural and educational initiatives.", "founder": "Founder", "leadership": "Leadership", "board": "Board of trustees", "director": "Director", "chair": "Chair", "boardMember": "Member of the Board of Trustees", "read": "Read", "source": "Source", "review": "Translation awaiting review."},
siteName: 'Qazaq Legacy Foundation',
metaTitle: 'Qazaq Legacy Foundation — a private foundation for Kazakhstan’s heritage',
metaDescription:
diff --git a/src/i18n/kk.ts b/src/i18n/kk.ts
index 77abd9d..3e8726f 100644
--- a/src/i18n/kk.ts
+++ b/src/i18n/kk.ts
@@ -1,7 +1,7 @@
import type { Dict } from './types'
export const kk: Dict = {
- sections: {"about": "Қор туралы", "contacts": "Байланыс", "goals": "Мақсаттар", "goalText": "Мәдениет пен өнердің көрнекті қайраткерлерінің мұрасын сақтау, оны жаңа ұрпаққа жеткізу және мәдени-ағартушылық бастамаларды қолдау.", "founder": "Құрылтайшы", "leadership": "Басшылық", "board": "Қамқоршылық кеңес", "read": "Оқу", "source": "Дереккөз", "review": "Аударманы тексеру қажет."},
+ sections: {"about": "Қор туралы", "contacts": "Байланыс", "goals": "Мақсаттар", "goalText": "Мәдениет пен өнердің көрнекті қайраткерлерінің мұрасын сақтау, оны жаңа ұрпаққа жеткізу және мәдени-ағартушылық бастамаларды қолдау.", "founder": "Құрылтайшы", "leadership": "Басшылық", "board": "Қамқоршылық кеңес", "director": "Директор", "chair": "Төраға", "boardMember": "Қамқоршылық кеңестің мүшесі", "read": "Оқу", "source": "Дереккөз", "review": "Аударманы тексеру қажет."},
siteName: 'Qazaq Legacy Foundation',
metaTitle: 'Qazaq Legacy Foundation — Қазақстан мұрасының жеке қоры',
metaDescription:
diff --git a/src/i18n/ru.ts b/src/i18n/ru.ts
index 9f9ed9e..eaf3da3 100644
--- a/src/i18n/ru.ts
+++ b/src/i18n/ru.ts
@@ -1,7 +1,7 @@
import type { Dict } from './types'
export const ru: Dict = {
- sections: {"about": "О фонде", "contacts": "Контакты", "goals": "Цели", "goalText": "Сохранять наследие выдающихся деятелей культуры и искусства, передавать его новым поколениям и поддерживать культурные и просветительские инициативы.", "founder": "Учредитель", "leadership": "Руководство", "board": "Попечительский совет", "read": "Читать", "source": "Источник", "review": ""},
+ sections: {"about": "О фонде", "contacts": "Контакты", "goals": "Цели", "goalText": "Сохранять наследие выдающихся деятелей культуры и искусства, передавать его новым поколениям и поддерживать культурные и просветительские инициативы.", "founder": "Учредитель", "leadership": "Руководство", "board": "Попечительский совет", "director": "Директор", "chair": "Председатель", "boardMember": "Член Попечительского совета", "read": "Читать", "source": "Источник", "review": ""},
siteName: 'Qazaq Legacy Foundation',
metaTitle: 'Qazaq Legacy Foundation — частный фонд наследия Казахстана',
metaDescription:
diff --git a/src/i18n/types.ts b/src/i18n/types.ts
index b902faf..694256f 100644
--- a/src/i18n/types.ts
+++ b/src/i18n/types.ts
@@ -2,7 +2,7 @@ export const locales = ['ru', 'kk', 'en'] as const
export type Locale = (typeof locales)[number]
export type Dict = {
- sections: { about: string; contacts: string; goals: string; goalText: string; founder: string; leadership: string; board: string; read: string; source: string; review: string }
+ sections: { about: string; contacts: string; goals: string; goalText: string; founder: string; leadership: string; board: string; director: string; chair: string; boardMember: string; read: string; source: string; review: string }
siteName: string
metaTitle: string
metaDescription: string
diff --git a/src/lib/content.ts b/src/lib/content.ts
index 04b53fc..e51497e 100644
--- a/src/lib/content.ts
+++ b/src/lib/content.ts
@@ -5,6 +5,7 @@ import { visibleNews } from './news-model'
import type { Locale } from '@/i18n'
import type { CmsHome, CmsNews } from './home-model'
import type { CmsLegal } from './legal-model'
+import type { CmsFoundation } from './foundation-people'
/** Читает контент из Payload. Любая ошибка (нет базы, не создана таблица) — пустой контент, страница остаётся рабочей. */
export async function loadContent(locale: Locale): Promise<{ home: CmsHome | null; news: CmsNews[] }> {
@@ -44,3 +45,14 @@ export async function loadNews(locale: Locale): Promise