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)