mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-02 18:42:39 +00:00
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>
25 lines
475 B
TypeScript
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";
|