Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

560 B
Raw Blame
/** 一条文案:纯文本(可带 {占位符}),或按数量选的复数形式(count 参数,Intl.PluralRules 的类别) */
export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
export type Msg = string | ({ other: string } & Partial<Record<PluralCategory, string>>);

/**
 * 一个命名空间的词典。zh 写成 `{ … } satisfies Catalog`,en 写成 `Catalog<typeof zh>`:
 * 键由 zh 推出,en 少键、多键都是类型错误。
 */
export type Catalog<T = Record<string, unknown>> = { [K in keyof T]: Msg };