34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
export const locales = ['ru', 'kk', 'en'] as const
|
|
export type Locale = (typeof locales)[number]
|
|
|
|
export type Dict = {
|
|
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; cover: string; photo: string; role: string }
|
|
news: { title: string; news: string; event: string }
|
|
collaboration: { title: string; text: string; write: string; contactMissing: string; instagram: 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)
|