mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
- Implemented the CliViewerPage component for displaying CLI outputs in a configurable multi-pane layout. - Integrated Zustand for state management, allowing for dynamic layout changes and tab management. - Added layout options: single, split horizontal, split vertical, and 2x2 grid. - Created viewerStore for managing layout, panes, and tabs, including actions for adding/removing panes and tabs. - Added CoordinatorPage barrel export for easier imports.
105 lines
3.9 KiB
TypeScript
105 lines
3.9 KiB
TypeScript
/**
|
|
* Chinese (Simplified) translations
|
|
* Consolidated exports for all Chinese translation files
|
|
*/
|
|
|
|
import common from './common.json';
|
|
import navigation from './navigation.json';
|
|
import sessions from './sessions.json';
|
|
import issues from './issues.json';
|
|
import home from './home.json';
|
|
import orchestrator from './orchestrator.json';
|
|
import coordinator from './coordinator.json';
|
|
import loops from './loops.json';
|
|
import commands from './commands.json';
|
|
import memory from './memory.json';
|
|
import settings from './settings.json';
|
|
import fixSession from './fix-session.json';
|
|
import history from './history.json';
|
|
import liteTasks from './lite-tasks.json';
|
|
import projectOverview from './project-overview.json';
|
|
import reviewSession from './review-session.json';
|
|
import sessionDetail from './session-detail.json';
|
|
import skills from './skills.json';
|
|
import cliManager from './cli-manager.json';
|
|
import cliMonitor from './cli-monitor.json';
|
|
import mcpManager from './mcp-manager.json';
|
|
import codexlens from './codexlens.json';
|
|
import apiSettings from './api-settings.json';
|
|
import theme from './theme.json';
|
|
import executionMonitor from './execution-monitor.json';
|
|
import cliHooks from './cli-hooks.json';
|
|
import index from './index.json';
|
|
import rules from './rules.json';
|
|
import prompts from './prompts.json';
|
|
import explorer from './explorer.json';
|
|
import graph from './graph.json';
|
|
import notification from './notification.json';
|
|
import notifications from './notifications.json';
|
|
import workspace from './workspace.json';
|
|
import help from './help.json';
|
|
import cliViewer from './cli-viewer.json';
|
|
|
|
/**
|
|
* Flattens nested JSON object to dot-separated keys
|
|
* e.g., { actions: { save: 'Save' } } => { 'actions.save': 'Save' }
|
|
*/
|
|
function flattenMessages(obj: Record<string, unknown>, prefix = ''): Record<string, string> {
|
|
const result: Record<string, string> = {};
|
|
|
|
for (const key in obj) {
|
|
const fullKey = prefix ? `${prefix}.${key}` : key;
|
|
const value = obj[key];
|
|
|
|
if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
|
|
Object.assign(result, flattenMessages(value as Record<string, unknown>, fullKey));
|
|
} else if (typeof value === 'string') {
|
|
result[fullKey] = value;
|
|
}
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
/**
|
|
* Consolidated and flattened Chinese messages
|
|
*/
|
|
export default {
|
|
...flattenMessages(common, 'common'),
|
|
...flattenMessages(navigation, 'navigation'),
|
|
...flattenMessages(sessions, 'sessions'),
|
|
...flattenMessages(issues, 'issues'),
|
|
...flattenMessages(home, 'home'),
|
|
...flattenMessages(orchestrator, 'orchestrator'),
|
|
...flattenMessages(coordinator, 'coordinator'),
|
|
...flattenMessages(loops, 'loops'),
|
|
...flattenMessages(commands, 'commands'),
|
|
...flattenMessages(memory, 'memory'),
|
|
...flattenMessages(settings, 'settings'),
|
|
...flattenMessages(fixSession, 'fixSession'),
|
|
...flattenMessages(history, 'history'),
|
|
...flattenMessages(liteTasks, 'liteTasks'),
|
|
...flattenMessages(projectOverview, 'projectOverview'),
|
|
...flattenMessages(reviewSession, 'reviewSession'),
|
|
...flattenMessages(sessionDetail, 'sessionDetail'),
|
|
...flattenMessages(skills, 'skills'),
|
|
...flattenMessages(cliManager, 'cli-manager'),
|
|
...flattenMessages(cliMonitor, 'cliMonitor'),
|
|
...flattenMessages(mcpManager, 'mcp'),
|
|
...flattenMessages(codexlens, 'codexlens'),
|
|
...flattenMessages(apiSettings, 'apiSettings'),
|
|
...flattenMessages(theme, 'theme'),
|
|
...flattenMessages(cliHooks, 'cliHooks'),
|
|
...flattenMessages(executionMonitor, 'executionMonitor'),
|
|
...flattenMessages(index, 'index'),
|
|
...flattenMessages(rules, 'rules'),
|
|
...flattenMessages(prompts, 'prompts'),
|
|
...flattenMessages(explorer, 'explorer'),
|
|
...flattenMessages(graph, 'graph'),
|
|
...flattenMessages(notification, 'notificationPanel'),
|
|
...flattenMessages(notifications, 'notifications'),
|
|
...flattenMessages(workspace, 'workspace'),
|
|
...flattenMessages(help, 'help'),
|
|
...flattenMessages(cliViewer, 'cliViewer'),
|
|
} as Record<string, string>;
|