qazaq-legacy-foundation-web/src/i18n/types.ts
Peppa ee1f75fbfd QLFW-52: «О фонде» без пометок и повторов
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 18:43:06 +05:00

60 lines
2.0 KiB
TypeScript

export const locales = ['ru', 'kk', 'en'] as const
export type Locale = (typeof locales)[number]
export type Dict = {
sections: { about: string; contacts: string; partners: string; goals: string; goalText: string; founder: string; leadership: string; board: string; read: string; source: string; review: string }
siteName: string
metaTitle: string
metaDescription: string
motto: string
heroLead: string
nav: { mission: string; directions: string; projects: string; news: string; collaboration: string }
tbc: string
mission: { title: string; text: string; missing: string }
directions: { title: string; items: { title: string; text: string }[] }
projects: { title: string; more: string }
book: { title: string; author: string; paragraphs: string[]; get: string; getNote: string; buy: { intro: string; platforms: string[]; stores: string; note: string } | null; cover: string; photo: string; role: string; organiser: string; translationReview: string; gallery: string; additions: string[] }
news: { title: string; news: string; event: string }
collaboration: { title: string; text: string; write: string; instagram: string }
contacts: { title: string; description: string; lead: string; emailLabel: string }
form: {
name: string
email: string
organization: string
optional: string
message: string
consent: string
consentNeed: string
submit: string
sending: string
successTitle: string
successText: string
again: string
fallback: string
errors: {
name: string
email: string
message: string
consent: string
tooLong: string
tooMany: string
failed: string
}
}
footer: string
legal: {
privacy: { title: string; description: string }
terms: { title: string; description: string }
missing: string
updated: string
termsShort: string
back: string
consentBefore: string
consentLink: string
consentAfter: string
}
language: string
}
export const isLocale = (v: string): v is Locale => (locales as readonly string[]).includes(v)