feat: add UI build to build process
- Created separate build script to handle both CLI and UI building - Added automatic UI dependency installation - Copy built UI artifacts to dist directory 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
91
ui/src/locales/en.json
Normal file
91
ui/src/locales/en.json
Normal file
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"app": {
|
||||
"title": "Configuration",
|
||||
"save": "Save",
|
||||
"save_and_restart": "Save and Restart",
|
||||
"cancel": "Cancel",
|
||||
"edit": "Edit",
|
||||
"remove": "Remove",
|
||||
"delete": "Delete",
|
||||
"settings": "Settings",
|
||||
"selectFile": "Select File",
|
||||
"config_saved_success": "Config saved successfully",
|
||||
"config_saved_failed": "Failed to save config",
|
||||
"config_saved_restart_success": "Config saved and service restarted successfully",
|
||||
"config_saved_restart_failed": "Failed to save config and restart service"
|
||||
},
|
||||
"login": {
|
||||
"title": "Sign in to your account",
|
||||
"description": "Enter your API key to access the configuration panel",
|
||||
"apiKey": "API Key",
|
||||
"apiKeyPlaceholder": "Enter your API key",
|
||||
"signIn": "Sign In",
|
||||
"invalidApiKey": "Invalid API key",
|
||||
"configError": "Configuration not loaded",
|
||||
"validating": "Validating API key..."
|
||||
},
|
||||
"toplevel": {
|
||||
"title": "General Settings",
|
||||
"log": "Enable Logging",
|
||||
"claude_path": "Claude Path",
|
||||
"host": "Host",
|
||||
"port": "Port",
|
||||
"apikey": "API Key"
|
||||
},
|
||||
"transformers": {
|
||||
"title": "Custom Transformers",
|
||||
"path": "Path",
|
||||
"project": "Project",
|
||||
"remove": "Remove",
|
||||
"add": "Add Custom Transformer",
|
||||
"edit": "Edit Custom Transformer",
|
||||
"delete": "Delete Custom Transformer",
|
||||
"delete_transformer_confirm": "Are you sure you want to delete this custom transformer?",
|
||||
"parameters": "Parameters"
|
||||
},
|
||||
"providers": {
|
||||
"title": "Providers",
|
||||
"name": "Name",
|
||||
"api_base_url": "API Base URL",
|
||||
"api_key": "API Key",
|
||||
"models": "Models",
|
||||
"models_placeholder": "Enter model name and press Enter to add",
|
||||
"add_model": "Add Model",
|
||||
"select_models": "Select Models",
|
||||
"remove": "Remove",
|
||||
"add": "Add Provider",
|
||||
"edit": "Edit Provider",
|
||||
"delete": "Delete",
|
||||
"cancel": "Cancel",
|
||||
"delete_provider_confirm": "Are you sure you want to delete this provider?",
|
||||
"test_connectivity": "Test Connectivity",
|
||||
"testing": "Testing...",
|
||||
"connection_successful": "Connection successful!",
|
||||
"connection_failed": "Connection failed!",
|
||||
"missing_credentials": "Missing API base URL or API key",
|
||||
"fetch_available_models": "Fetch available models",
|
||||
"fetching_models": "Fetching models...",
|
||||
"fetch_models_failed": "Failed to fetch models",
|
||||
"transformers": "Transformers",
|
||||
"select_transformer": "Select Transformer",
|
||||
"no_transformers": "No transformers available",
|
||||
"provider_transformer": "Provider Transformer",
|
||||
"model_transformers": "Model Transformers",
|
||||
"transformer_parameters": "Transformer Parameters",
|
||||
"add_parameter": "Add Parameter",
|
||||
"parameter_name": "Parameter Name",
|
||||
"parameter_value": "Parameter Value",
|
||||
"selected_transformers": "Selected Transformers"
|
||||
},
|
||||
"router": {
|
||||
"title": "Router",
|
||||
"default": "Default",
|
||||
"background": "Background",
|
||||
"think": "Think",
|
||||
"longContext": "Long Context",
|
||||
"webSearch": "Web Search",
|
||||
"selectModel": "Select a model...",
|
||||
"searchModel": "Search model...",
|
||||
"noModelFound": "No model found."
|
||||
}
|
||||
}
|
||||
91
ui/src/locales/zh.json
Normal file
91
ui/src/locales/zh.json
Normal file
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"app": {
|
||||
"title": "配置",
|
||||
"save": "保存",
|
||||
"save_and_restart": "保存并重启",
|
||||
"cancel": "取消",
|
||||
"edit": "编辑",
|
||||
"remove": "移除",
|
||||
"delete": "删除",
|
||||
"settings": "设置",
|
||||
"selectFile": "选择文件",
|
||||
"config_saved_success": "配置保存成功",
|
||||
"config_saved_failed": "配置保存失败",
|
||||
"config_saved_restart_success": "配置保存并服务重启成功",
|
||||
"config_saved_restart_failed": "配置保存并服务重启失败"
|
||||
},
|
||||
"login": {
|
||||
"title": "登录到您的账户",
|
||||
"description": "请输入您的API密钥以访问配置面板",
|
||||
"apiKey": "API密钥",
|
||||
"apiKeyPlaceholder": "请输入您的API密钥",
|
||||
"signIn": "登录",
|
||||
"invalidApiKey": "API密钥无效",
|
||||
"configError": "配置未加载",
|
||||
"validating": "正在验证API密钥..."
|
||||
},
|
||||
"toplevel": {
|
||||
"title": "通用设置",
|
||||
"log": "启用日志",
|
||||
"claude_path": "Claude 路径",
|
||||
"host": "主机",
|
||||
"port": "端口",
|
||||
"apikey": "API 密钥"
|
||||
},
|
||||
"transformers": {
|
||||
"title": "自定义转换器",
|
||||
"path": "路径",
|
||||
"project": "项目",
|
||||
"remove": "移除",
|
||||
"add": "添加自定义转换器",
|
||||
"edit": "编辑自定义转换器",
|
||||
"delete": "删除自定义转换器",
|
||||
"delete_transformer_confirm": "您确定要删除此自定义转换器吗?",
|
||||
"parameters": "参数"
|
||||
},
|
||||
"providers": {
|
||||
"title": "供应商",
|
||||
"name": "名称",
|
||||
"api_base_url": "API 基础地址",
|
||||
"api_key": "API 密钥",
|
||||
"models": "模型",
|
||||
"models_placeholder": "输入模型名称并按回车键添加",
|
||||
"add_model": "添加模型",
|
||||
"select_models": "选择模型",
|
||||
"remove": "移除",
|
||||
"add": "添加供应商",
|
||||
"edit": "编辑供应商",
|
||||
"delete": "删除",
|
||||
"cancel": "取消",
|
||||
"delete_provider_confirm": "您确定要删除此供应商吗?",
|
||||
"test_connectivity": "测试连通性",
|
||||
"testing": "测试中...",
|
||||
"connection_successful": "连接成功!",
|
||||
"connection_failed": "连接失败!",
|
||||
"missing_credentials": "缺少 API 基础地址或 API 密钥",
|
||||
"fetch_available_models": "获取可用模型",
|
||||
"fetching_models": "获取模型中...",
|
||||
"fetch_models_failed": "获取模型失败",
|
||||
"transformers": "转换器",
|
||||
"select_transformer": "选择转换器",
|
||||
"no_transformers": "无可用转换器",
|
||||
"provider_transformer": "供应商转换器",
|
||||
"model_transformers": "模型转换器",
|
||||
"transformer_parameters": "转换器参数",
|
||||
"add_parameter": "添加参数",
|
||||
"parameter_name": "参数名称",
|
||||
"parameter_value": "参数值",
|
||||
"selected_transformers": "已选转换器"
|
||||
},
|
||||
"router": {
|
||||
"title": "路由",
|
||||
"default": "默认",
|
||||
"background": "后台",
|
||||
"think": "思考",
|
||||
"longContext": "长上下文",
|
||||
"webSearch": "网络搜索",
|
||||
"selectModel": "选择一个模型...",
|
||||
"searchModel": "搜索模型...",
|
||||
"noModelFound": "未找到模型."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user