feat(panel): modularize 3-tab preferences, add model context windows, and optimize telemetry

- Refactor Preferences into decoupled General, Structure, and Other tabs with unified settings schema, factory reset, and trajectory cache rebuild endpoints
- Extract standalone widget, metric, and step-table column registries to customize topbar/composer slots, hover popup modules, live overview layout, and step detail columns
- Add bilingual zh-CN/en-US i18n dictionaries, theme accent presets, and font scale controls across Shadow DOM overlay and sidebar views
- Support per-model host-advertised context window rules across App and IDE transports
- Preserve CLEARED step generation timings, memoize per-poll model resolution, optimize LOESS sorted-x fitting, and update bilingual READMEs and test suites
This commit is contained in:
fish
2026-11-15 01:18:29 +09:00
parent ad33e9cc62
commit 18c608ae63
63 changed files with 16614 additions and 5873 deletions
+425
View File
@@ -0,0 +1,425 @@
/**
* @fileoverview English (en-US) dictionary for Antigravity Usage & Speed Monitor.
* Zero emoji characters.
*/
export const I18N_MESSAGES_EN_US = Object.freeze({
// Top Navigation
'nav.overview': 'Live',
'nav.consumption': 'Usage',
'nav.steps': 'Steps',
'nav.settings': 'Settings',
// Top Session Header
'header.followLatest': 'Follow Latest Session',
'header.currentWindowNamed': 'Current ({title})',
'header.latestNamed': 'Latest ({title})',
'header.lockedSession': 'Pinned Session ({id})',
'header.lockedMeta': 'Pinned',
'header.convMetaWithSubs': 'Main {main} · {subs} sub ({total} steps)',
'header.convMetaSteps': '{count} steps',
'header.hasUpdate': 'Update',
'header.upgradeToVer': 'Update v{ver}',
'header.upgrading': 'Updating…',
'header.ariaUpdate': 'New version available, click to update',
'header.ariaRefresh': 'Refresh telemetry',
'header.statusSyncing': 'Syncing',
'header.statusSynced': 'Synced',
'header.statusRetrying': 'Retrying',
'header.statusGenerating': 'Running{suffix}',
'header.statusQuotaCached': 'Quota Cached',
'header.statusQuotaOffline': 'Quota Offline',
'header.statusLive': 'Live 2s',
// Formatters & Common Labels
'fmt.pending': 'N/A',
'fmt.speedIncomplete': 'Incomplete timing',
'fmt.speedInvalidOutput': 'No valid output',
'fmt.speedInconsistent': 'Invalid timing',
'fmt.speedShort': 'Too brief (<0.5s)',
'fmt.speedLegacy': 'Legacy cached',
'fmt.sampleSteps': '{valid}/{total} steps',
'fmt.resetUnknown': 'Unknown reset',
'fmt.resetSoon': 'Resetting soon',
'fmt.resetUnder1m': 'Resets in <1m',
'fmt.resetDaysHours': 'Resets in {d}d {h}h',
'fmt.resetHoursMins': 'Resets in {h}h {m}m',
'fmt.resetMins': 'Resets in {m}m',
'fmt.selectTime': 'Select time',
'fmt.unknownModel': 'Unknown model',
'fmt.mainAgent': 'Main Agent',
'fmt.mainBadge': 'Main',
'fmt.subAgent': 'Subagent',
'fmt.subBadge': 'S{index}',
'fmt.subBadgeShort': 'Sub',
'fmt.selectedCount': '{count} {unit} selected',
'fmt.selectedListTitle': 'Selected ({count}): {names}',
'fmt.selectPlaceholder': 'Select',
// Capsule & Multi-Session Overlay
'capsule.ariaMonitor': 'Usage & Speed Monitor',
'capsule.ariaMulti': 'Active Sessions Overview',
'capsule.multiZero': '0 active',
'capsule.multiRunning': '{count} active',
'capsule.multiRunningWithSubs': '{count} active · {subs} sub',
'capsule.tpsRunning': 'Running',
'capsule.tpsIdle': 'Idle',
'capsule.quotaLeft': '{pct}% left',
'capsule.quotaUnknown': '--% left',
'capsule.newVersion': 'Update',
'capsule.updating': 'Updating…',
'capsule.ariaUpdateTitle': 'New version available, click to update',
'capsule.hoverNewVer': 'Update v{ver} available',
'capsule.hoverNewVerGeneric': 'New version available',
'capsule.hoverUpdateHintTopbar': 'Click v{ver} in titlebar to update',
'capsule.hoverUpdateHintComposer': 'Click v{ver} badge to update',
'capsule.hoverUpdateHintTopbarGeneric': 'Click update badge in titlebar',
'capsule.hoverUpdateHintComposerGeneric': 'Click update badge to install',
'multi.title': 'Active Sessions',
'multi.ariaDialog': 'Active Sessions Panel',
'multi.pinned': 'Pinned',
'multi.loading': 'Loading...',
'multi.empty': 'No active running sessions',
'multi.allIdle': 'All idle',
'multi.metaWithSubs': '{main} main · {subs} subagents active',
'multi.metaMainOnly': '{main} sessions active',
'multi.hereTag': 'Here',
'multi.inspectSessionTitle': 'Inspect session in monitor: {title}',
// Live Overview & Widgets
'module.metrics': 'Live Metrics',
'module.context': 'Context Window',
'module.quotas': 'Available Quotas',
'module.live_tasks': 'Live Running Tasks',
// Capsule Slot Metric Options
'capMetric.context': 'Context Usage (%)',
'capMetric.tps': 'Output Speed (TPS)',
'capMetric.ttft': 'First Token Latency (TTFT)',
'capMetric.avg_tps': 'Avg Speed (Avg TPS)',
'capMetric.cost': 'Step Cost ($)',
'capMetric.session_cost': 'Session Cost ($)',
'capMetric.cache_hit': 'Cache Hit Rate (%)',
'capMetric.session_tokens': 'Session Tokens',
'capMetric.quota_auto': 'Auto Tightest Quota',
'capMetric.gemini_5h': 'Gemini 5h Quota',
'capMetric.gemini_weekly': 'Gemini Weekly Quota',
'capMetric.claude_5h': 'Claude 5h Quota',
'capMetric.claude_weekly': 'Claude Weekly Quota',
// Overview Matrix Metric Options & Cells
'ovMetric.tps': 'Output Speed',
'ovMetric.ttft': 'First Token',
'ovMetric.avg_tps': 'Avg Speed',
'ovMetric.step_cost': 'Step Cost',
'ovMetric.session_cost': 'Session Cost',
'ovMetric.cache_hit': 'Cache Hit',
'ovMetric.session_tokens': 'Session Tokens',
'ovMetric.context_usage': 'Context Usage',
'ovMetric.quota_tightest': 'Tightest Quota',
'ovMetric.subAvgTtft': 'Avg {val}',
'ovMetric.subValidSamples': 'Valid {samples}',
'ovMetric.subCacheAndTotal': 'Cache {cache}% · Total {cost}',
'ovMetric.subStepsAndCache': '{steps} steps · Cache {cache}%',
'ovMetric.subStepCost': 'Latest {cost}',
'ovMetric.subPromptHit': 'Latest {latest}% · Avg {avg}%',
'ovMetric.subInOutTokens': 'In {inTok} · Out {outTok}',
'ovMetric.subCtxRatio': '{used} / {limit}',
'ovMetric.subQuotaPool': '{label}',
'ovMetric.subQuotaPending': 'Waiting for quota sync',
// Context Window Widget
'ctx.followActive': 'Follow Active ({badge})',
'ctx.followActiveTitle': 'Automatically inspect the active or running agent context window',
'ctx.expandMore': '+{count} More ▾',
'ctx.expandMoreTitle': 'Expand all {count} subagent context pills',
'ctx.collapse': 'Less ▴',
'ctx.collapseTitle': 'Collapse extra subagent pills',
'ctx.ch.assistant': 'Assistant',
'ctx.ch.assistantTitle': 'Model reasoning, responses, and tool call arguments',
'ctx.ch.toolResults': 'Tool Results',
'ctx.ch.toolResultsTitle': 'File reads, terminal outputs, and tool execution results',
'ctx.ch.userInput': 'User Input',
'ctx.ch.userInputTitle': 'User messages and uploaded attachments',
'ctx.ch.subagent': 'Subagent',
'ctx.ch.subagentTitle': 'Subagent reports and background task notifications',
'ctx.ch.checkpoint': 'Checkpoint',
'ctx.ch.checkpointTitle': 'Compacted conversation checkpoint summaries',
'ctx.ch.systemPrompt': 'System Prompt',
'ctx.ch.systemPromptTitle': 'Core identity, sandbox, artifact, and environment prompts',
'ctx.ch.systemTools': 'System Tools',
'ctx.ch.systemToolsTitle': 'Built-in tool schema declarations',
'ctx.ch.mcpTools': 'MCP Tools',
'ctx.ch.mcpToolsTitle': 'MCP external server tool and resource schemas',
'ctx.ch.skills': 'Skills',
'ctx.ch.skillsTitle': 'Installed Skills index and instructions',
'ctx.ch.userRules': 'User Rules',
'ctx.ch.userRulesTitle': 'Global and workspace custom user_rules',
// Quota Pools Widget
'quota.weeklyShort': 'Weekly',
'quota.weeklyPool': 'Weekly ({pool})',
'quota.loading': 'Loading...',
'quota.failed': 'Unavailable (--%)',
'quota.usedAndLeft': '{reset} · Used {used}% ({rem}% left)',
'quota.cycle5hTitle': 'Current 5h cycle ({pool}): {tok} Tokens · {cost} · {calls} calls',
'quota.cycleWkCustomTitle': 'Current calendar week: {tok} Tokens · {cost} · {calls} calls',
'quota.cycleWkPoolTitle': 'Current weekly cycle ({pool}): {tok} Tokens · {cost} · {calls} calls',
'quota.footTokensCustom': 'Week Total: {tok} ({cost})',
'quota.footTokensCycle': 'Cycle Total: {tok} ({cost})',
'quota.footCredits': 'AI Credits: {credits}',
'quota.footCallsCustom': 'Week Calls: {calls}',
'quota.footCallsCycle': 'Cycle Calls: {calls}',
'quota.footTipCustom': 'Counted since Monday 00:00 local time',
'quota.footTipCycle': 'Summed across each quota pool weekly reset window',
// Live Activity Widget
'live.currentSession': 'Current Session',
'live.switchSessionTitle': 'Switch monitor to session: {title}',
'live.thinking': 'Thinking',
'live.running': 'Running',
'live.done': 'Done',
'live.doneWithSteps': 'Done ({steps} steps)',
'live.subToggleRunning': 'Subagents {run}/{total} {arrow}',
'live.subToggleIdle': 'Subagents ({total}) {arrow}',
'live.subCollapseTitle': 'Collapse subagent list',
'live.subExpandTitle': 'Expand subagent activity list',
// Consumption View
'cons.rangeToday': 'Today',
'cons.range24h': '24h',
'cons.range7d': '7d',
'cons.range14d': '14d',
'cons.range30d': '30d',
'cons.rangeAll': 'All',
'cons.rangeCustom': 'Custom',
'cons.rangeAria': 'Usage statistics time range',
'cons.applyFilter': 'Apply',
'cons.rangeTo': 'to',
'cons.overviewTitle': 'Usage Overview',
'cons.totalTokens': 'Total Tokens',
'cons.estCost': 'Est. Cost',
'cons.cacheHitRate': 'Cache Hit Rate',
'cons.callsCount': '{calls} calls',
'cons.cacheHitTokens': 'Hit {tokens}',
'cons.newInput': 'New Input',
'cons.uncachedInput': 'Uncached input',
'cons.cacheRead': 'Cache Read',
'cons.savedCost': 'Saved {cost}',
'cons.outputUsage': 'Output',
'cons.replyAndThink': 'Reply {resp} · Think {think}',
'cons.trendTitle': 'Usage Trend',
'cons.allTime': 'All Time',
'cons.trendHeatmapHint': 'Daily ({days}d) · Hover for details',
'cons.trendPointsHintHourly': 'Hourly ({points} pts) · Hover for details',
'cons.trendPointsHintDaily': 'Daily ({points} pts) · Hover for details',
'cons.topModels': 'Top Models',
'cons.clientSources': 'Client Sources',
'cons.monthlyTitle': 'Monthly Breakdown',
'cons.monthLabel': 'M{m}',
'cons.legInput': 'Input',
'cons.legCache': 'Cache',
'cons.legOutput': 'Output',
'cons.legThinking': 'Think',
'cons.footInput': 'In ',
'cons.footCache': 'Cache ',
'cons.footOutput': 'Out ',
'cons.footThinking': 'Think ',
'cons.footCalls': 'Calls ',
// Steps Detail View & Step Column Registry
'steps.title': 'Step Records',
'steps.tabSteps': 'Steps ({count})',
'steps.tabStepsFiltered': 'Steps ({filtered}/{total})',
'steps.tabModels': 'Analytics',
'steps.allAgents': 'All Agents',
'steps.allModels': 'All Models',
'steps.selectModel': 'Select Model',
'steps.unitAgent': 'agents',
'steps.unitModel': 'models',
'steps.lineTitle': 'Session Timeline',
'steps.fitTitle': 'Trend Fit',
'steps.modelsTitle': 'Model Summary',
'steps.modelsEmpty': 'No model calls in current scope',
'steps.metricTotalTokens': 'Tokens',
'steps.metricContext': 'Context',
'steps.metricTps': 'TPS',
'steps.metricTtft': 'TTFT',
'steps.metricCache': 'Cache',
'steps.metricCost': 'Cost',
'steps.badgeBackAll': 'Click to return to All Agents',
'steps.badgeFilterAgent': 'Click to filter {agent} (Ctrl/Shift-click to multi-select)',
'steps.ctxTitle': 'Context {ctx} · Thinking {think} · Reply {resp}',
'steps.modelCallsShare': '{calls} calls · {pct}%',
'steps.modelCallsOnly': '{calls} calls',
'steps.modelsSummaryPrefix': '{count} models · ',
'steps.modelPerfFoot': 'Avg {tps} · TTFT {ttft} · Cache {cache}%',
'steps.modelSplitFoot': 'In {inTok} · Cache {cacheTok} · Think {thinkTok} · Out {respTok}',
'steps.fitActiveCardTitle': '{title} (Active in Trend Fit; Ctrl/Shift-click to compare)',
'steps.fitInactiveCardTitle': 'Click to inspect {text} in Trend Fit (Ctrl/Shift-click to compare)',
// Step Table Columns (Headers & Option Labels)
'stepCol.step.th': 'Step',
'stepCol.step.opt': 'Step & Agent',
'stepCol.time.th': 'Time',
'stepCol.time.opt': 'Timestamp (HH:mm:ss)',
'stepCol.model.th': 'Model',
'stepCol.model.opt': 'Model',
'stepCol.tps.th': 'Speed',
'stepCol.tps.opt': 'Output Speed (TPS)',
'stepCol.ttft.th': 'TTFT',
'stepCol.ttft.opt': 'First Token (TTFT)',
'stepCol.duration.th': 'Time(s)',
'stepCol.duration.opt': 'Total Duration (s)',
'stepCol.tokens_combo.th': 'Ctx / Think / Reply',
'stepCol.tokens_combo.opt': 'Ctx / Think / Reply (Combo)',
'stepCol.input_tokens.th': 'Input',
'stepCol.input_tokens.opt': 'New Input Tokens',
'stepCol.cache_tokens.th': 'CacheTok',
'stepCol.cache_tokens.opt': 'Cache Read Tokens',
'stepCol.output_tokens.th': 'Output',
'stepCol.output_tokens.opt': 'Total Output Tokens',
'stepCol.cache.th': 'Cache',
'stepCol.cache.opt': 'Cache Hit Rate (%)',
'stepCol.cost.th': 'Cost',
'stepCol.cost.opt': 'Step Cost ($)',
// Preferences (3-Tab Modular Settings)
'settings.subTab.general': 'General',
'settings.subTab.structure': 'Structure',
'settings.subTab.other': 'Other',
'settings.subTab.aria': 'Preferences category tabs',
'settings.saving': 'Saving…',
'settings.saved': 'Saved',
'settings.saveFailed': 'Save failed',
'settings.resetDone': 'Reset to default',
'settings.resetBtn': 'Reset',
// Preferences -> General Tab
'settings.gen.appearanceTitle': 'Interface & Appearance',
'settings.gen.language': 'Language',
'settings.gen.langZh': '简体中文',
'settings.gen.langEn': 'English',
'settings.gen.langAuto': 'Follow System',
'settings.gen.themeAccent': 'Accent Color',
'settings.gen.accentHost': 'Host',
'settings.gen.accentBlue': 'Blue',
'settings.gen.accentEmerald': 'Emerald',
'settings.gen.accentAmber': 'Amber',
'settings.gen.accentViolet': 'Violet',
'settings.gen.accentCyan': 'Cyan',
'settings.gen.accentRose': 'Rose',
'settings.gen.fontScale': 'Font Size',
'settings.gen.fontSm': 'Small',
'settings.gen.fontMd': 'Default',
'settings.gen.fontLg': 'Large',
'settings.gen.fontXl': 'XL',
'settings.gen.fontHint': 'Scales sidebar and popover typography while keeping the inline capsule compact',
'settings.gen.updateTitle': 'Updates & Pricing',
'settings.gen.updateMode': 'Update Policy',
'settings.gen.updateManual': 'Notify only, update manually',
'settings.gen.updateAuto': 'Auto update',
'settings.gen.updateOff': 'Disable updates',
'settings.gen.pricingLabel': 'Pricing Catalog',
'settings.gen.versionLabel': 'Current Version',
'settings.gen.modelCount': '{count} models',
'settings.gen.srcRemote': 'Cloud synced',
'settings.gen.srcLocal': 'Local file',
'settings.gen.srcDefault': 'Built-in',
'settings.gen.syncAt': 'Synced {time}',
'settings.gen.pubAt': 'Published {date}',
'settings.gen.defaultPricing': 'Default catalog',
'settings.gen.syncBtn': 'Sync Pricing',
'settings.gen.syncingBtn': 'Syncing…',
'settings.gen.syncingMsg': 'Syncing pricing catalog…',
'settings.gen.syncedMsg': 'Pricing updated ({count} models)',
'settings.gen.syncFallbackMsg': 'Timed out, using local catalog',
'settings.gen.checkUpdateBtn': 'Check Updates',
'settings.gen.checkingBtn': 'Checking…',
'settings.gen.checkingMsg': 'Checking for updates…',
'settings.gen.checkFailedMsg': 'Check failed: {err}',
'settings.gen.upToDateMsg': 'Already up to date (v{ver})',
'settings.gen.downloadingMsg': 'Downloading update…',
'settings.gen.updatedRestartMsg': 'Update complete, restarting panel…',
'settings.gen.updateSkippedMsg': 'Update not applied',
'settings.gen.updateFailedMsg': 'Update failed',
'settings.gen.canUpgradeSub': 'v{ver} available ({mode})',
'settings.gen.upgradeToBtn': 'Upgrade to v{ver}',
'settings.gen.manualUpgradeBtn': 'Upgrade v{ver}',
'settings.gen.updateOffSub': 'Notifications off ({mode})',
'settings.gen.latestSub': 'Up to date ({mode})',
// Preferences -> Structure Tab
'settings.str.mountSection': 'Mount & Capsule Bar',
'settings.str.mountBadge': '{count}/5 slots',
'settings.str.mountMode': 'Panel Mount Mode',
'settings.str.mountDual': 'Dual Mount (Titlebar + Sidebar)',
'settings.str.mountComposer': 'Composer Mount (Input Box + Sidebar)',
'settings.str.mountSidebar': 'Sidebar Only',
'settings.str.multiToggle': 'Active Sessions Pill',
'settings.str.show': 'Show',
'settings.str.hide': 'Hide',
'settings.str.capsuleSlotsLabel': 'Capsule Metrics & Order (Left → Right, 1–5)',
'settings.str.addCapsuleSlot': 'Add Slot ({count}/{max})',
'settings.str.hoverSection': 'Hover Quick-View',
'settings.str.hoverBadgeOff': 'Off',
'settings.str.hoverBadgeCount': '{count} modules',
'settings.str.hoverModulesLabel': 'Hover Popup Modules (Top → Bottom, 0–4)',
'settings.str.hoverEmptyHint': 'Hover quick-view disabled (click capsule to open full panel)',
'settings.str.addHoverModule': 'Add Module ({count}/{max})',
'settings.str.overviewSection': 'Live Overview Layout',
'settings.str.overviewBadge': '{modCount} mod · {metCount} cells',
'settings.str.overviewModulesLabel': 'Overview Modules & Order (Top → Bottom, min 1)',
'settings.str.addOverviewModule': 'Add Module ({count}/{max})',
'settings.str.overviewMetricsLabel': 'First-Row Metrics (Left → Right, 1–4)',
'settings.str.overviewMetricsInactiveHint': '"Live Metrics" is hidden here; these cells still apply to Hover Quick-View or when re-added',
'settings.str.addOverviewMetric': 'Add Metric ({count}/{max})',
'settings.str.stepsSection': 'Step Table Columns',
'settings.str.stepsBadge': '{count} cols',
'settings.str.stepsColsLabel': '"Steps" Visible Columns (Left → Right, min 2)',
'settings.str.addStepCol': 'Add Column ({count}/{max})',
'settings.slot.moveUp': 'Move earlier',
'settings.slot.moveDown': 'Move later',
'settings.slot.remove': 'Remove item',
'settings.slot.minReached': 'Keep at least {min}',
'settings.slot.alreadyAdded': 'Added',
// Preferences -> Other Tab
'settings.oth.modelTitle': 'Model Identity Display',
'settings.oth.modelFormat': 'Model Name Format',
'settings.oth.modelShort': 'Short Alias (e.g. argon-4-high)',
'settings.oth.modelUpstream': 'Raw Upstream ID (e.g. gemini-3.8-flash-n)',
'settings.oth.orchFormat': 'Orchestrator Series ID',
'settings.oth.orchCompact': 'Compact Alias (e.g. orchestrator-argon)',
'settings.oth.orchFull': 'Full Upstream ID (e.g. gemini-pro-orchestrator)',
'settings.oth.baselineTitle': 'Model Context Settings',
'settings.oth.ctxModel': 'Model',
'settings.oth.ctxBaselineLabel': 'Context Window Limit',
'settings.oth.ctxChooseModel': 'Choose a model',
'settings.oth.ctxDefault': 'Follow host settings',
'settings.oth.ctxExpensive': '{name} (uses more quota)',
'settings.oth.ctxTokens': '{count} tokens',
'settings.oth.ctxUnavailable': '{name} (currently unavailable)',
'settings.oth.ctxConfigured': '{name} · Set',
'settings.oth.ctxConfiguredReported': '{name} · Set / Last seen {reported}',
'settings.oth.ctxDefaultReported': 'Default · Last seen {name}',
'settings.oth.ctxReported': 'The host reported {name} on the latest request.',
'settings.oth.ctxMixed': 'Different limits by thinking level',
'settings.oth.ctxMixedHint': 'Thinking levels for this model have different saved limits. Choose a limit to apply it to all levels.',
'settings.oth.ctxBaselineHint': 'Thinking levels for the same model share a limit. Saved limits are reapplied at plugin startup and used for future messages.',
'settings.oth.ctxNoModels': 'The host has not returned any available models.',
'settings.oth.ctxNoOptions': 'The host has not provided context options or a capacity for this model. Follow host settings is the only available option.',
'settings.oth.maintTitle': 'Cache & Reset',
'settings.oth.cacheLabel': 'Local Trajectory Cache',
'settings.oth.cacheDesc': 'Clear cached step records and rescan all conversation transcripts immediately',
'settings.oth.rebuildBtn': 'Rebuild Trajectory Cache',
'settings.oth.rebuildingBtn': 'Rebuilding…',
'settings.oth.rebuildDone': 'Trajectory cache rebuilt',
'settings.oth.rebuildFailed': 'Failed to rebuild cache',
'settings.oth.resetLabel': 'Factory Defaults',
'settings.oth.resetDesc': 'Restore all preferences across General, Structure, and Other tabs to default values',
'settings.oth.resetAllBtn': 'Reset All Defaults',
'settings.oth.resetConfirmBtn': 'Click Again to Confirm',
'settings.oth.resettingBtn': 'Resetting…',
'settings.oth.resetAllDone': 'All preferences restored to defaults',
});
+72
View File
@@ -0,0 +1,72 @@
/**
* @fileoverview Reactive lightweight i18n engine (`zh-CN` / `en-US` / `auto`).
* Default language is `'zh-CN'` so out-of-the-box UI matches existing behavior 100%.
*/
import { createReactiveStore } from '../core/reactive.js';
import { I18N_MESSAGES_ZH_CN } from './zh-CN.js';
import { I18N_MESSAGES_EN_US } from './en-US.js';
export const I18N_DICTIONARIES = Object.freeze({
'zh-CN': I18N_MESSAGES_ZH_CN,
'en-US': I18N_MESSAGES_EN_US,
});
export function normalizeI18nLanguage(raw) {
const val = String(raw ?? '').trim();
if (val === 'auto') return 'auto';
if (/^en(?:-|$)/i.test(val)) return 'en-US';
if (/^zh(?:-|$)/i.test(val)) return 'zh-CN';
return 'zh-CN';
}
export function detectHostSystemLocale() {
try {
if (typeof navigator !== 'undefined' && navigator.language) {
return String(navigator.language).toLowerCase().startsWith('zh') ? 'zh-CN' : 'en-US';
}
} catch {
// Ignore environment navigator read errors
}
return 'zh-CN';
}
export const i18nStore = createReactiveStore({
language: 'zh-CN',
locale: 'zh-CN',
});
export function setI18nLanguage(rawLang) {
const language = normalizeI18nLanguage(rawLang);
const locale = language === 'auto' ? detectHostSystemLocale() : language;
const cur = i18nStore.getState();
if (cur.language !== language || cur.locale !== locale) {
i18nStore.setState({ language, locale });
}
return locale;
}
export function getEffectiveLocale() {
return i18nStore.getState().locale || 'zh-CN';
}
export function isEnglishLocale() {
return getEffectiveLocale() === 'en-US';
}
/**
* Translate a message key with optional `{name}` variable interpolation.
*
* @param {string} key
* @param {Record<string, string | number>} [vars]
* @returns {string}
*/
export function t(key, vars = undefined) {
const locale = getEffectiveLocale();
const dict = I18N_DICTIONARIES[locale] || I18N_MESSAGES_ZH_CN;
const template = dict[key] ?? I18N_MESSAGES_ZH_CN[key] ?? key;
if (!vars || typeof template !== 'string') return template;
return template.replace(/\{(\w+)\}/g, (_, k) =>
vars[k] !== undefined && vars[k] !== null ? String(vars[k]) : ''
);
}
+425
View File
@@ -0,0 +1,425 @@
/**
* @fileoverview Simplified Chinese (zh-CN) dictionary for Antigravity Usage & Speed Monitor.
* Matches 100% of the existing out-of-the-box UI copy. Zero emoji characters.
*/
export const I18N_MESSAGES_ZH_CN = Object.freeze({
// Top Navigation
'nav.overview': '实时监控',
'nav.consumption': '用量统计',
'nav.steps': '调用明细',
'nav.settings': '偏好设置',
// Top Session Header
'header.followLatest': '跟随最新会话',
'header.currentWindowNamed': '当前窗口 ({title})',
'header.latestNamed': '最新 ({title})',
'header.lockedSession': '已锁定会话 ({id})',
'header.lockedMeta': '已锁定',
'header.convMetaWithSubs': '主{main} · {subs}子 (共{total}步)',
'header.convMetaSteps': '{count}步',
'header.hasUpdate': '有新版本',
'header.upgradeToVer': '升级 v{ver}',
'header.upgrading': '升级中…',
'header.ariaUpdate': '发现新版本,点击升级',
'header.ariaRefresh': '刷新数据',
'header.statusSyncing': '同步中',
'header.statusSynced': '已刷新',
'header.statusRetrying': '重试中',
'header.statusGenerating': '生成中{suffix}',
'header.statusQuotaCached': '额度缓存',
'header.statusQuotaOffline': '额度离线',
'header.statusLive': '实时 2s',
// Formatters & Common Labels
'fmt.pending': '待定',
'fmt.speedIncomplete': '计时不完整',
'fmt.speedInvalidOutput': '无有效输出',
'fmt.speedInconsistent': '耗时数据异常',
'fmt.speedShort': '耗时过短 (<0.5s)',
'fmt.speedLegacy': '旧版缓存记录',
'fmt.sampleSteps': '{valid}/{total} 步',
'fmt.resetUnknown': '未知重置时间',
'fmt.resetSoon': '即将重置',
'fmt.resetUnder1m': '<1分钟后重置',
'fmt.resetDaysHours': '{d}天 {h}小时后重置',
'fmt.resetHoursMins': '{h}小时 {m}分后重置',
'fmt.resetMins': '{m}分钟后重置',
'fmt.selectTime': '选择时间',
'fmt.unknownModel': '模型未知',
'fmt.mainAgent': '主代理',
'fmt.mainBadge': '主',
'fmt.subAgent': '子代理',
'fmt.subBadge': '子{index}',
'fmt.subBadgeShort': '子',
'fmt.selectedCount': '已选 {count} {unit}',
'fmt.selectedListTitle': '已选 ({count}):{names}',
'fmt.selectPlaceholder': '请选择',
// Capsule & Multi-Session Overlay
'capsule.ariaMonitor': '用量与速度监控',
'capsule.ariaMulti': '多会话实时信息',
'capsule.multiZero': '0 运行中',
'capsule.multiRunning': '{count} 运行中',
'capsule.multiRunningWithSubs': '{count} 运行 · {subs} 子',
'capsule.tpsRunning': '生成中',
'capsule.tpsIdle': '待命',
'capsule.quotaLeft': '余 {pct}%',
'capsule.quotaUnknown': '余 --%',
'capsule.newVersion': '新版本',
'capsule.updating': '更新中…',
'capsule.ariaUpdateTitle': '发现新版本,点击立即更新',
'capsule.hoverNewVer': '发现新版本 v{ver}',
'capsule.hoverNewVerGeneric': '发现新版本可用',
'capsule.hoverUpdateHintTopbar': '点击顶栏 v{ver} 即可更新',
'capsule.hoverUpdateHintComposer': '点击版本胶囊 v{ver} 即可更新',
'capsule.hoverUpdateHintTopbarGeneric': '点击顶栏版本胶囊即可更新',
'capsule.hoverUpdateHintComposerGeneric': '点击版本胶囊即可更新',
'multi.title': '实时运行会话',
'multi.ariaDialog': '多会话实时信息面板',
'multi.pinned': '已固定',
'multi.loading': '读取中...',
'multi.empty': '当前暂无在线运行的会话',
'multi.allIdle': '全部待命',
'multi.metaWithSubs': '{main} 主会话 · {subs} 子代理运行中',
'multi.metaMainOnly': '{main} 个会话运行中',
'multi.hereTag': '本窗',
'multi.inspectSessionTitle': '点击在监控面板中检视会话:{title}',
// Live Overview & Widgets
'module.metrics': '实时指标',
'module.context': '上下文窗口',
'module.quotas': '可用额度',
'module.live_tasks': '实时运行任务',
// Capsule Slot Metric Options
'capMetric.context': '上下文占用 (%)',
'capMetric.tps': '输出速度 (TPS)',
'capMetric.ttft': '首字延迟 (TTFT)',
'capMetric.avg_tps': '会话均速 (Avg TPS)',
'capMetric.cost': '本次费用 ($)',
'capMetric.session_cost': '会话累计费用 ($)',
'capMetric.cache_hit': '缓存命中率 (%)',
'capMetric.session_tokens': '会话总 Token',
'capMetric.quota_auto': '自动紧俏额度',
'capMetric.gemini_5h': 'Gemini 5h 额度',
'capMetric.gemini_weekly': 'Gemini 周额度',
'capMetric.claude_5h': 'Claude 5h 额度',
'capMetric.claude_weekly': 'Claude 周额度',
// Overview Matrix Metric Options & Cells
'ovMetric.tps': '输出速度',
'ovMetric.ttft': '首字延迟',
'ovMetric.avg_tps': '平均速度',
'ovMetric.step_cost': '本次费用',
'ovMetric.session_cost': '累计费用',
'ovMetric.cache_hit': '缓存命中率',
'ovMetric.session_tokens': '会话 Token',
'ovMetric.context_usage': '上下文占用',
'ovMetric.quota_tightest': '紧俏额度',
'ovMetric.subAvgTtft': '均值 {val}',
'ovMetric.subValidSamples': '有效 {samples}',
'ovMetric.subCacheAndTotal': '缓存 {cache}% · 累计 {cost}',
'ovMetric.subStepsAndCache': '{steps} 步 · 缓存 {cache}%',
'ovMetric.subStepCost': '单步 {cost}',
'ovMetric.subPromptHit': '当步 {latest}% · 均值 {avg}%',
'ovMetric.subInOutTokens': '入 {inTok} · 出 {outTok}',
'ovMetric.subCtxRatio': '{used} / {limit}',
'ovMetric.subQuotaPool': '{label}',
'ovMetric.subQuotaPending': '等待配额同步',
// Context Window Widget
'ctx.followActive': '跟随活跃 ({badge})',
'ctx.followActiveTitle': '自动展示当前正在运行或最新活跃的代理上下文窗口',
'ctx.expandMore': '+{count} 展开 ▾',
'ctx.expandMoreTitle': '展开全部 {count} 个子代理的上下文窗口胶囊',
'ctx.collapse': '收起 ▴',
'ctx.collapseTitle': '折叠多余子代理胶囊',
'ctx.ch.assistant': '模型回复',
'ctx.ch.assistantTitle': '模型推理思考、回复正文与工具调用入参',
'ctx.ch.toolResults': '工具结果',
'ctx.ch.toolResultsTitle': '文件读取、终端输出与工具执行返回内容',
'ctx.ch.userInput': '用户消息',
'ctx.ch.userInputTitle': '用户提问文本与上传附件',
'ctx.ch.subagent': '子代理通知',
'ctx.ch.subagentTitle': '子代理完成汇报与后台任务系统通知',
'ctx.ch.checkpoint': '压缩摘要',
'ctx.ch.checkpointTitle': '自动上下文压缩生成的历史摘要检查点',
'ctx.ch.systemPrompt': '系统提示词',
'ctx.ch.systemPromptTitle': '核心身份、终端沙箱、制品与环境提示词',
'ctx.ch.systemTools': '系统工具',
'ctx.ch.systemToolsTitle': '内置系统工具 Schema 定义',
'ctx.ch.mcpTools': 'MCP 工具',
'ctx.ch.mcpToolsTitle': 'MCP 外部服务工具与资源定义',
'ctx.ch.skills': 'Skill',
'ctx.ch.skillsTitle': '已挂载的 Skills 技能索引与说明',
'ctx.ch.userRules': '用户规则',
'ctx.ch.userRulesTitle': '全局与工作区自定义规则 (user_rules)',
// Quota Pools Widget
'quota.weeklyShort': '周限',
'quota.weeklyPool': '周限 ({pool})',
'quota.loading': '读取中...',
'quota.failed': '获取失败 (--%)',
'quota.usedAndLeft': '{reset} · 已用 {used}% (余 {rem}%)',
'quota.cycle5hTitle': '当前 5h 周期累计 ({pool}):{tok} Tokens · {cost} · {calls} 次调用',
'quota.cycleWkCustomTitle': '本周自然周累计:{tok} Tokens · {cost} · {calls} 次调用',
'quota.cycleWkPoolTitle': '当前周限周期累计 ({pool}):{tok} Tokens · {cost} · {calls} 次调用',
'quota.footTokensCustom': '本周累计: {tok} ({cost})',
'quota.footTokensCycle': '周期累计: {tok} ({cost})',
'quota.footCredits': 'AI 积分: {credits}',
'quota.footCallsCustom': '本周调用: {calls} 次',
'quota.footCallsCycle': '周期调用: {calls} 次',
'quota.footTipCustom': '按本机自然周(周一 00:00 起)统计',
'quota.footTipCycle': '按各配额池独立周限重置周期分别统计并汇总',
// Live Activity Widget
'live.currentSession': '当前会话',
'live.switchSessionTitle': '点击切换查看会话:{title}',
'live.thinking': '推理中',
'live.running': '运行中',
'live.done': '已完成',
'live.doneWithSteps': '已完成 ({steps} 步)',
'live.subToggleRunning': '子代理 {run}/{total} {arrow}',
'live.subToggleIdle': '子代理 ({total}) {arrow}',
'live.subCollapseTitle': '点击收起子代理列表',
'live.subExpandTitle': '点击展开查看子代理缩略状态',
// Consumption View
'cons.rangeToday': '今天',
'cons.range24h': '1天',
'cons.range7d': '7天',
'cons.range14d': '14天',
'cons.range30d': '30天',
'cons.rangeAll': '全部',
'cons.rangeCustom': '自定义',
'cons.rangeAria': '消耗统计时间范围',
'cons.applyFilter': '筛选',
'cons.rangeTo': '至',
'cons.overviewTitle': '用量总览',
'cons.totalTokens': '总 Token',
'cons.estCost': '预估费用',
'cons.cacheHitRate': '缓存命中率',
'cons.callsCount': '{calls} 次',
'cons.cacheHitTokens': '命中 {tokens}',
'cons.newInput': '新输入',
'cons.uncachedInput': '未命中缓存输入',
'cons.cacheRead': '缓存读取',
'cons.savedCost': '节省 {cost}',
'cons.outputUsage': '输出用量',
'cons.replyAndThink': '回复 {resp} · 思考 {think}',
'cons.trendTitle': '用量趋势',
'cons.allTime': '全部时间',
'cons.trendHeatmapHint': '按日 ({days}天) · 悬停查看',
'cons.trendPointsHintHourly': '按小时 ({points}点) · 悬停查看',
'cons.trendPointsHintDaily': '按日 ({points}点) · 悬停查看',
'cons.topModels': '模型排行',
'cons.clientSources': '客户端来源',
'cons.monthlyTitle': '月度统计',
'cons.monthLabel': '{m}月',
'cons.legInput': '输入',
'cons.legCache': '缓存',
'cons.legOutput': '输出',
'cons.legThinking': '思考',
'cons.footInput': '输入 ',
'cons.footCache': '缓存 ',
'cons.footOutput': '输出 ',
'cons.footThinking': '思考 ',
'cons.footCalls': '调用 ',
// Steps Detail View & Step Column Registry
'steps.title': '调用记录',
'steps.tabSteps': '按步查看 ({count})',
'steps.tabStepsFiltered': '按步查看 ({filtered}/{total})',
'steps.tabModels': '总汇总',
'steps.allAgents': '全部汇总',
'steps.allModels': '全部模型',
'steps.selectModel': '选择模型',
'steps.unitAgent': '代理',
'steps.unitModel': '模型',
'steps.lineTitle': '会话走势',
'steps.fitTitle': '趋势拟合',
'steps.modelsTitle': '模型总览',
'steps.modelsEmpty': '当前范围暂无模型调用记录',
'steps.metricTotalTokens': '总Token',
'steps.metricContext': '上下文',
'steps.metricTps': 'TPS',
'steps.metricTtft': '首字',
'steps.metricCache': '缓存',
'steps.metricCost': '费用',
'steps.badgeBackAll': '点击切回全部汇总',
'steps.badgeFilterAgent': '点击仅过滤查看 {agent}(按住 Ctrl/Shift 可加减多选)',
'steps.ctxTitle': '上下文 {ctx} · 思考 {think} · 正文 {resp}',
'steps.modelCallsShare': '{calls}次 · {pct}%',
'steps.modelCallsOnly': '{calls}次',
'steps.modelsSummaryPrefix': '{count} 模型 · ',
'steps.modelPerfFoot': '均速 {tps} · 首字 {ttft} · 缓存 {cache}%',
'steps.modelSplitFoot': '入 {inTok} · 缓 {cacheTok} · 思 {thinkTok} · 正 {respTok}',
'steps.fitActiveCardTitle': '{title}(已纳入上方趋势拟合,按住 Ctrl/Shift 点击可多选对比)',
'steps.fitInactiveCardTitle': '点击在上方拟合图查看 {text}(按住 Ctrl/Shift 点击可多选同图对比)',
// Step Table Columns (Headers & Option Labels)
'stepCol.step.th': '步序',
'stepCol.step.opt': '步序与代理',
'stepCol.time.th': '时间',
'stepCol.time.opt': '调用时间 (HH:mm:ss)',
'stepCol.model.th': '模型',
'stepCol.model.opt': '调用模型',
'stepCol.tps.th': '速度',
'stepCol.tps.opt': '输出速度 (TPS)',
'stepCol.ttft.th': '首字',
'stepCol.ttft.opt': '首字延迟 (TTFT)',
'stepCol.duration.th': '耗时',
'stepCol.duration.opt': '端到端耗时 (s)',
'stepCol.tokens_combo.th': '上下文 / 思考 / 正文',
'stepCol.tokens_combo.opt': '上下文 / 思考 / 正文 (组合)',
'stepCol.input_tokens.th': '新输入',
'stepCol.input_tokens.opt': '新输入 Token',
'stepCol.cache_tokens.th': '缓存读',
'stepCol.cache_tokens.opt': '缓存读取 Token',
'stepCol.output_tokens.th': '总输出',
'stepCol.output_tokens.opt': '总输出 Token',
'stepCol.cache.th': '缓存',
'stepCol.cache.opt': '缓存命中率 (%)',
'stepCol.cost.th': '费用',
'stepCol.cost.opt': '单步费用 ($)',
// Preferences (3-Tab Modular Settings)
'settings.subTab.general': '常规',
'settings.subTab.structure': '结构',
'settings.subTab.other': '其他',
'settings.subTab.aria': '偏好设置分类切换',
'settings.saving': '保存中…',
'settings.saved': '已保存',
'settings.saveFailed': '保存失败',
'settings.resetDone': '已恢复默认',
'settings.resetBtn': '恢复默认',
// Preferences -> General Tab
'settings.gen.appearanceTitle': '界面与外观',
'settings.gen.language': '界面语言',
'settings.gen.langZh': '简体中文',
'settings.gen.langEn': 'English',
'settings.gen.langAuto': '跟随系统',
'settings.gen.themeAccent': '主题色',
'settings.gen.accentHost': '跟随宿主',
'settings.gen.accentBlue': '经典蓝',
'settings.gen.accentEmerald': '翡翠绿',
'settings.gen.accentAmber': '琥珀橙',
'settings.gen.accentViolet': '鸢尾紫',
'settings.gen.accentCyan': '青碧色',
'settings.gen.accentRose': '玫瑰红',
'settings.gen.fontScale': '字体大小',
'settings.gen.fontSm': '小',
'settings.gen.fontMd': '标准',
'settings.gen.fontLg': '大',
'settings.gen.fontXl': '特大',
'settings.gen.fontHint': '等比缩放侧边栏与展开面板字号,顶栏及输入框内嵌胶囊保持紧凑定高',
'settings.gen.updateTitle': '版本更新',
'settings.gen.updateMode': '更新方式',
'settings.gen.updateManual': '仅提示新版本,手动更新',
'settings.gen.updateAuto': '自动更新',
'settings.gen.updateOff': '关闭更新',
'settings.gen.pricingLabel': '价格表',
'settings.gen.versionLabel': '当前版本',
'settings.gen.modelCount': '{count} 个模型',
'settings.gen.srcRemote': '云端同步',
'settings.gen.srcLocal': '本地文件',
'settings.gen.srcDefault': '内置默认',
'settings.gen.syncAt': '更新于 {time}',
'settings.gen.pubAt': '发布于 {date}',
'settings.gen.defaultPricing': '默认价格',
'settings.gen.syncBtn': '更新价格表',
'settings.gen.syncingBtn': '更新中…',
'settings.gen.syncingMsg': '正在同步价格表…',
'settings.gen.syncedMsg': '价格表已更新 ({count} 个模型)',
'settings.gen.syncFallbackMsg': '连接超时,使用本地价格表',
'settings.gen.checkUpdateBtn': '检查更新',
'settings.gen.checkingBtn': '检查中…',
'settings.gen.checkingMsg': '正在检查新版本…',
'settings.gen.checkFailedMsg': '检查失败:{err}',
'settings.gen.upToDateMsg': '当前已是最新版本 (v{ver})',
'settings.gen.downloadingMsg': '正在下载更新…',
'settings.gen.updatedRestartMsg': '更新完成,正在重启面板…',
'settings.gen.updateSkippedMsg': '未执行更新',
'settings.gen.updateFailedMsg': '更新失败',
'settings.gen.canUpgradeSub': '可升级至 v{ver} ({mode})',
'settings.gen.upgradeToBtn': '升级至 v{ver}',
'settings.gen.manualUpgradeBtn': '手动升级 v{ver}',
'settings.gen.updateOffSub': '已关闭更新提醒 ({mode})',
'settings.gen.latestSub': '已是最新 ({mode})',
// Preferences -> Structure Tab
'settings.str.mountSection': '挂载与胶囊栏',
'settings.str.mountBadge': '{count}/5 项',
'settings.str.mountMode': '面板挂载方式',
'settings.str.mountDual': '双栖挂载 (顶部栏 + 侧边栏)',
'settings.str.mountComposer': '输入框挂载 (输入框 + 侧边栏)',
'settings.str.mountSidebar': '仅侧边栏',
'settings.str.multiToggle': '实时运行会话入口',
'settings.str.show': '显示',
'settings.str.hide': '隐藏',
'settings.str.capsuleSlotsLabel': '胶囊数值与顺序 (左 → 右,1~5 项)',
'settings.str.addCapsuleSlot': '添加槽位 ({count}/{max})',
'settings.str.hoverSection': '鼠标悬浮窗',
'settings.str.hoverBadgeOff': '已关闭',
'settings.str.hoverBadgeCount': '{count} 模块',
'settings.str.hoverModulesLabel': '悬浮窗展示模块 (上 → 下,0~4 项)',
'settings.str.hoverEmptyHint': '已关闭悬浮速览窗(点击胶囊仍可展开完整面板)',
'settings.str.addHoverModule': '添加模块 ({count}/{max})',
'settings.str.overviewSection': '实时监控布局',
'settings.str.overviewBadge': '{modCount} 模块 · {metCount} 指标',
'settings.str.overviewModulesLabel': '监控模块与顺序 (上 → 下,至少 1 项)',
'settings.str.addOverviewModule': '添加模块 ({count}/{max})',
'settings.str.overviewMetricsLabel': '第一行实时指标 (左 → 右,1~4 项)',
'settings.str.overviewMetricsInactiveHint': '当前已移出「实时指标」模块,此配置将在悬浮窗启用或重新添加模块时生效',
'settings.str.addOverviewMetric': '添加指标 ({count}/{max})',
'settings.str.stepsSection': '调用明细字段',
'settings.str.stepsBadge': '{count} 列',
'settings.str.stepsColsLabel': '「按步查看」显示列 (左 → 右,至少 2 列)',
'settings.str.addStepCol': '添加字段 ({count}/{max})',
'settings.slot.moveUp': '前移',
'settings.slot.moveDown': '后移',
'settings.slot.remove': '移除此项',
'settings.slot.minReached': '至少保留 {min} 项',
'settings.slot.alreadyAdded': '已添加',
// Preferences -> Other Tab
'settings.oth.modelTitle': '模型标识显示',
'settings.oth.modelFormat': '模型名称格式',
'settings.oth.modelShort': '精简代号 (如 argon-4-high)',
'settings.oth.modelUpstream': '原始模型 ID (如 gemini-3.8-flash-n)',
'settings.oth.orchFormat': 'Orchestrator 系列 ID',
'settings.oth.orchCompact': '精简代号 (如 orchestrator-argon)',
'settings.oth.orchFull': '原始完整 ID (如 gemini-pro-orchestrator)',
'settings.oth.baselineTitle': '模型上下文设置',
'settings.oth.ctxModel': '模型',
'settings.oth.ctxBaselineLabel': '上下文窗口上限',
'settings.oth.ctxChooseModel': '选择模型',
'settings.oth.ctxDefault': '跟随宿主设置',
'settings.oth.ctxExpensive': '{name}(消耗更多配额)',
'settings.oth.ctxTokens': '{count} token',
'settings.oth.ctxUnavailable': '{name}(当前不可用)',
'settings.oth.ctxConfigured': '{name} · 已设置',
'settings.oth.ctxConfiguredReported': '{name} · 已设置 / 最近 {reported}',
'settings.oth.ctxDefaultReported': '默认 · 最近 {name}',
'settings.oth.ctxReported': '最近一次请求由宿主报告为 {name}。',
'settings.oth.ctxMixed': '各推理档设置不同',
'settings.oth.ctxMixedHint': '该模型的推理档保留了不同的旧设置。选择一个上限即可统一。',
'settings.oth.ctxBaselineHint': '同一模型的推理档共享上限。插件会在启动后重新应用已保存的设置,用于之后发送的消息。',
'settings.oth.ctxNoModels': '宿主暂未返回可用模型。',
'settings.oth.ctxNoOptions': '宿主未提供此模型的上下文档位或容量,当前只能跟随宿主设置。',
'settings.oth.maintTitle': '缓存与重置',
'settings.oth.cacheLabel': '本地轨迹缓存',
'settings.oth.cacheDesc': '清空内存与磁盘步骤解析缓存并立即重扫全部会话',
'settings.oth.rebuildBtn': '重建本地轨迹缓存',
'settings.oth.rebuildingBtn': '重建中…',
'settings.oth.rebuildDone': '本地轨迹缓存已重建',
'settings.oth.rebuildFailed': '缓存重建失败',
'settings.oth.resetLabel': '恢复出厂偏好',
'settings.oth.resetDesc': '将常规、结构与其他分页中的所有偏好设置还原为初始默认状态',
'settings.oth.resetAllBtn': '恢复全部默认设置',
'settings.oth.resetConfirmBtn': '再次点击确认重置',
'settings.oth.resettingBtn': '重置中…',
'settings.oth.resetAllDone': '已恢复全部默认设置',
});