fix(dashboard): default to concise english labels (#29)

This commit is contained in:
Eyejoker
2026-04-27 01:18:16 +09:00
committed by GitHub
parent 635f9851bc
commit 06a3a9a340
2 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ type InboxFilter = 'all' | InboxItem['kind'];
type HealthLevel = 'ok' | 'stale' | 'down'; type HealthLevel = 'ok' | 'stale' | 'down';
const REFRESH_INTERVAL_MS = 15_000; const REFRESH_INTERVAL_MS = 15_000;
const LOCALE_STORAGE_KEY = 'ejclaw.dashboard.locale'; const LOCALE_STORAGE_KEY = 'ejclaw.dashboard.locale.v2';
const DEFAULT_VIEW: DashboardView = 'inbox'; const DEFAULT_VIEW: DashboardView = 'inbox';
const HEALTH_STALE_MS = 5 * 60_000; const HEALTH_STALE_MS = 5 * 60_000;
const HEALTH_DOWN_MS = 15 * 60_000; const HEALTH_DOWN_MS = 15 * 60_000;
@@ -75,7 +75,7 @@ function readInitialLocale(): Locale {
if (matched) return matched; if (matched) return matched;
} }
return 'ko'; return 'en';
} }
function formatDate(value: string | null | undefined, locale: Locale): string { function formatDate(value: string | null | undefined, locale: Locale): string {

View File

@@ -520,12 +520,12 @@ export const messages = {
}, },
usage: { usage: {
empty: 'No usage snapshot. Check collector.', empty: 'No usage snapshot. Check collector.',
current: 'In use', current: 'Active',
tightest: 'Lowest', tightest: 'Tightest',
watch: 'Watch', watch: 'Watch',
remaining: 'Left', remaining: 'Left',
speed: 'Speed', speed: 'Rate',
inUse: 'in use', inUse: 'active',
reset: 'reset', reset: 'reset',
noReset: 'no reset', noReset: 'no reset',
limitBasis: { limitBasis: {
@@ -540,12 +540,12 @@ export const messages = {
groupPrimary: 'Claude / Kimi', groupPrimary: 'Claude / Kimi',
groupCodex: 'Codex', groupCodex: 'Codex',
risk: { risk: {
ok: 'Clear', ok: 'OK',
warn: 'Watch', warn: 'Watch',
critical: 'Limit risk', critical: 'Risk',
}, },
speedLabel: { speedLabel: {
ok: 'Normal', ok: 'OK',
warn: 'Fast', warn: 'Fast',
critical: 'Too fast', critical: 'Too fast',
}, },