qazaq-legacy-foundation-web/src/i18n/types.ts
Peppa 7e8dfa000b
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 3с
peppa/test test: success за 1с
peppa/build build: success за 48с
ci / checks (pull_request) Successful in 1m31s
deploy / deploy (pull_request) Successful in 18s
QLFW-15: форма обращения, страница контактов, сохранение и отправка обращений
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:14:29 +05:00

59 lines
1.8 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; 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)