qazaq-legacy-foundation-web/src/i18n/types.ts
Peppa 6e98df6d72
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 3с
peppa/test test: success за 1с
peppa/build build: success за 39с
ci / checks (pull_request) Successful in 1m24s
deploy / deploy (pull_request) Successful in 2m2s
QLFW-28: текст «Где купить книгу» в блоке книги
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:14:32 +05:00

34 lines
1.4 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; 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; 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)