Files
claude-hud/src/i18n/types.ts
xiaodream c8d9e809ed feat: add Chinese (zh) language support (#334)
Add i18n infrastructure with automatic language detection from system
locale (LANG/LC_ALL/LC_MESSAGES) and manual override via config.json.
Translates all user-facing HUD labels, status messages, and format
strings. English remains the default.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 16:39:45 +08:00

25 lines
475 B
TypeScript

export type MessageKey =
// Labels
| "label.context"
| "label.usage"
| "label.approxRam"
| "label.rules"
| "label.hooks"
// Status
| "status.limitReached"
| "status.allTodosComplete"
// Format
| "format.resets"
| "format.resetsIn"
| "format.in"
| "format.cache"
| "format.out"
| "format.tokPerSec"
// Init
| "init.initializing"
| "init.macosNote";
export type Messages = Record<MessageKey, string>;
export type Language = "en" | "zh";