merge upstream/main
This commit is contained in:
@@ -850,6 +850,16 @@ export default {
|
||||
allowedGroupsUpdated: 'Allowed groups updated successfully',
|
||||
failedToLoadGroups: 'Failed to load groups',
|
||||
failedToUpdateAllowedGroups: 'Failed to update allowed groups',
|
||||
// User Group Configuration
|
||||
groupConfig: 'User Group Configuration',
|
||||
groupConfigHint: 'Configure custom rate multipliers for user {email} (overrides group defaults)',
|
||||
exclusiveGroups: 'Exclusive Groups',
|
||||
publicGroups: 'Public Groups (Default Available)',
|
||||
defaultRate: 'Default Rate',
|
||||
customRate: 'Custom Rate',
|
||||
useDefaultRate: 'Use Default',
|
||||
customRatePlaceholder: 'Leave empty for default',
|
||||
groupConfigUpdated: 'Group configuration updated successfully',
|
||||
deposit: 'Deposit',
|
||||
withdraw: 'Withdraw',
|
||||
depositAmount: 'Deposit Amount',
|
||||
@@ -3225,6 +3235,80 @@ export default {
|
||||
failedToSave: 'Failed to save settings',
|
||||
failedToTestSmtp: 'SMTP connection test failed',
|
||||
failedToSendTestEmail: 'Failed to send test email'
|
||||
},
|
||||
|
||||
// Error Passthrough Rules
|
||||
errorPassthrough: {
|
||||
title: 'Error Passthrough Rules',
|
||||
description: 'Configure how upstream errors are returned to clients',
|
||||
createRule: 'Create Rule',
|
||||
editRule: 'Edit Rule',
|
||||
deleteRule: 'Delete Rule',
|
||||
noRules: 'No rules configured',
|
||||
createFirstRule: 'Create your first error passthrough rule',
|
||||
allPlatforms: 'All Platforms',
|
||||
passthrough: 'Passthrough',
|
||||
custom: 'Custom',
|
||||
code: 'Code',
|
||||
body: 'Body',
|
||||
|
||||
// Columns
|
||||
columns: {
|
||||
priority: 'Priority',
|
||||
name: 'Name',
|
||||
conditions: 'Conditions',
|
||||
platforms: 'Platforms',
|
||||
behavior: 'Behavior',
|
||||
status: 'Status',
|
||||
actions: 'Actions'
|
||||
},
|
||||
|
||||
// Match Mode
|
||||
matchMode: {
|
||||
any: 'Code OR Keyword',
|
||||
all: 'Code AND Keyword',
|
||||
anyHint: 'Status code matches any error code, OR message contains any keyword',
|
||||
allHint: 'Status code matches any error code, AND message contains any keyword'
|
||||
},
|
||||
|
||||
// Form
|
||||
form: {
|
||||
name: 'Rule Name',
|
||||
namePlaceholder: 'e.g., Context Limit Passthrough',
|
||||
priority: 'Priority',
|
||||
priorityHint: 'Lower values have higher priority',
|
||||
description: 'Description',
|
||||
descriptionPlaceholder: 'Describe the purpose of this rule...',
|
||||
matchConditions: 'Match Conditions',
|
||||
errorCodes: 'Error Codes',
|
||||
errorCodesPlaceholder: '422, 400, 429',
|
||||
errorCodesHint: 'Separate multiple codes with commas',
|
||||
keywords: 'Keywords',
|
||||
keywordsPlaceholder: 'One keyword per line\ncontext limit\nmodel not supported',
|
||||
keywordsHint: 'One keyword per line, case-insensitive',
|
||||
matchMode: 'Match Mode',
|
||||
platforms: 'Platforms',
|
||||
platformsHint: 'Leave empty to apply to all platforms',
|
||||
responseBehavior: 'Response Behavior',
|
||||
passthroughCode: 'Passthrough upstream status code',
|
||||
responseCode: 'Custom status code',
|
||||
passthroughBody: 'Passthrough upstream error message',
|
||||
customMessage: 'Custom error message',
|
||||
customMessagePlaceholder: 'Error message to return to client...',
|
||||
enabled: 'Enable this rule'
|
||||
},
|
||||
|
||||
// Messages
|
||||
nameRequired: 'Please enter rule name',
|
||||
conditionsRequired: 'Please configure at least one error code or keyword',
|
||||
ruleCreated: 'Rule created successfully',
|
||||
ruleUpdated: 'Rule updated successfully',
|
||||
ruleDeleted: 'Rule deleted successfully',
|
||||
deleteConfirm: 'Are you sure you want to delete rule "{name}"?',
|
||||
failedToLoad: 'Failed to load rules',
|
||||
failedToSave: 'Failed to save rule',
|
||||
failedToDelete: 'Failed to delete rule',
|
||||
failedToToggle: 'Failed to toggle status'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -911,6 +911,16 @@ export default {
|
||||
allowedGroupsUpdated: '允许分组更新成功',
|
||||
failedToLoadGroups: '加载分组列表失败',
|
||||
failedToUpdateAllowedGroups: '更新允许分组失败',
|
||||
// 用户分组配置
|
||||
groupConfig: '用户分组配置',
|
||||
groupConfigHint: '为用户 {email} 配置专属分组倍率(覆盖分组默认倍率)',
|
||||
exclusiveGroups: '专属分组',
|
||||
publicGroups: '公开分组(默认可用)',
|
||||
defaultRate: '默认倍率',
|
||||
customRate: '专属倍率',
|
||||
useDefaultRate: '使用默认',
|
||||
customRatePlaceholder: '留空使用默认',
|
||||
groupConfigUpdated: '分组配置更新成功',
|
||||
deposit: '充值',
|
||||
withdraw: '退款',
|
||||
depositAmount: '充值金额',
|
||||
@@ -3396,6 +3406,80 @@ export default {
|
||||
failedToSave: '保存设置失败',
|
||||
failedToTestSmtp: 'SMTP 连接测试失败',
|
||||
failedToSendTestEmail: '发送测试邮件失败'
|
||||
},
|
||||
|
||||
// Error Passthrough Rules
|
||||
errorPassthrough: {
|
||||
title: '错误透传规则',
|
||||
description: '配置上游错误如何返回给客户端',
|
||||
createRule: '创建规则',
|
||||
editRule: '编辑规则',
|
||||
deleteRule: '删除规则',
|
||||
noRules: '暂无规则',
|
||||
createFirstRule: '创建第一条错误透传规则',
|
||||
allPlatforms: '所有平台',
|
||||
passthrough: '透传',
|
||||
custom: '自定义',
|
||||
code: '状态码',
|
||||
body: '消息体',
|
||||
|
||||
// Columns
|
||||
columns: {
|
||||
priority: '优先级',
|
||||
name: '名称',
|
||||
conditions: '匹配条件',
|
||||
platforms: '平台',
|
||||
behavior: '响应行为',
|
||||
status: '状态',
|
||||
actions: '操作'
|
||||
},
|
||||
|
||||
// Match Mode
|
||||
matchMode: {
|
||||
any: '错误码 或 关键词',
|
||||
all: '错误码 且 关键词',
|
||||
anyHint: '状态码匹配任一错误码,或消息包含任一关键词',
|
||||
allHint: '状态码匹配任一错误码,且消息包含任一关键词'
|
||||
},
|
||||
|
||||
// Form
|
||||
form: {
|
||||
name: '规则名称',
|
||||
namePlaceholder: '例如:上下文超限透传',
|
||||
priority: '优先级',
|
||||
priorityHint: '数值越小优先级越高,优先匹配',
|
||||
description: '规则描述',
|
||||
descriptionPlaceholder: '描述此规则的用途...',
|
||||
matchConditions: '匹配条件',
|
||||
errorCodes: '错误码',
|
||||
errorCodesPlaceholder: '422, 400, 429',
|
||||
errorCodesHint: '多个错误码用逗号分隔',
|
||||
keywords: '关键词',
|
||||
keywordsPlaceholder: '每行一个关键词\ncontext limit\nmodel not supported',
|
||||
keywordsHint: '每行一个关键词,不区分大小写',
|
||||
matchMode: '匹配模式',
|
||||
platforms: '适用平台',
|
||||
platformsHint: '不选择表示适用于所有平台',
|
||||
responseBehavior: '响应行为',
|
||||
passthroughCode: '透传上游状态码',
|
||||
responseCode: '自定义状态码',
|
||||
passthroughBody: '透传上游错误信息',
|
||||
customMessage: '自定义错误信息',
|
||||
customMessagePlaceholder: '返回给客户端的错误信息...',
|
||||
enabled: '启用此规则'
|
||||
},
|
||||
|
||||
// Messages
|
||||
nameRequired: '请输入规则名称',
|
||||
conditionsRequired: '请至少配置一个错误码或关键词',
|
||||
ruleCreated: '规则创建成功',
|
||||
ruleUpdated: '规则更新成功',
|
||||
ruleDeleted: '规则删除成功',
|
||||
deleteConfirm: '确定要删除规则 "{name}" 吗?',
|
||||
failedToLoad: '加载规则失败',
|
||||
failedToSave: '保存规则失败',
|
||||
failedToDelete: '删除规则失败',
|
||||
failedToToggle: '切换状态失败'
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user