老板三条要求:①模型切换放对话框左下角,不用去配置页;②去掉所有「打开 QwenPaw」 外链;③客户不需要知道的提示(如「提示词归 QwenPaw 管」)全去掉。 - 切换器移入输入区左下角(原静态模型名位置):紧凑 .model-inline 样式、 可搜索、按供应商分组 + 视觉标;进页面即 loadEngineModels(),展开时兜底刷新 - 配置页模型栏改只读展示 + 一行「在对话框左下角切换」指引 - 删除 qwenpawUrl 计算属性 + 3 处 QwenPaw 外链 - i18n 删 14 个内部/面向 QwenPaw 的键(整键删,不留空串——体检器不允许空文案), 并改写 sub/subagents/engineBadge/engineDownHint/cfgSlugHint/cfgSuffixHint/ sharedNote/listFootHint 为客户视角措辞;中英 869/869 对称 - 纯前端改动(后端端点与测试未变,224 passed) 验收:线上实测左下角下拉显示 wjd → 切 deepseek-v4-pro 生效并落盘 → 已恢复 wjd; 配置页截图确认无任何 QwenPaw 字样;重启网关不会回退模型(已实测)。
941 lines
41 KiB
TypeScript
941 lines
41 KiB
TypeScript
// English locale resource
|
||
export default {
|
||
nav: {
|
||
title: 'API Gateway',
|
||
connected: 'Connected to api.wangjinding.com',
|
||
disconnected: 'Connection error',
|
||
menudashboard: 'Dashboard',
|
||
menuchat: 'Chat',
|
||
menuimages: 'Images',
|
||
menuvideos: 'Videos',
|
||
menuagents: 'Agents',
|
||
menumodels: 'Models & Providers',
|
||
menumetrics: 'Metrics',
|
||
menukeys: 'API Keys',
|
||
menuusers: 'Users',
|
||
menulogs: 'Logs',
|
||
menufeedback: 'Feedback',
|
||
menufeedbackinbox: 'User feedback',
|
||
menusettings: 'Settings',
|
||
control: 'Console',
|
||
more: 'More',
|
||
subdashboard: 'Gateway overview · refreshed every 8s',
|
||
subchat: 'Vision-ready · multi-provider direct routing',
|
||
subimages: 'Params on the left, history on the right · downloads proxied by the gateway',
|
||
subvideos: '720P · 4–12s · async polling',
|
||
subagents: 'Assistants that get work done',
|
||
submodels: 'Providers / models / protocol lines',
|
||
submetrics: 'Usage & cost · isolated per account',
|
||
subkeys: 'Up to 3 per account · stored in plaintext, copyable anytime',
|
||
subusers: 'Accounts & roles · admin can inspect others’ logs and assets',
|
||
sublogs: 'Isolated per account · expand for request / response details',
|
||
subfeedback: 'Something off? Tell us · images welcome',
|
||
subfeedbackinbox: 'Feedback from every account · images included',
|
||
subgatewaycfg: 'Every config key, editable · applied on save',
|
||
menugatewaycfg: 'Gateway config',
|
||
subsettings: 'Appearance / generation defaults / security / gateway',
|
||
},
|
||
theme: {
|
||
choose: 'Appearance',
|
||
followSystem: 'Follow system dark mode',
|
||
followShort: 'System',
|
||
applied: 'Theme switched',
|
||
// Skin names / blurbs (mirror of zh.ts)
|
||
nameA: 'A · Deep Space Blue',
|
||
descA: 'Dark base + teal, easy on the eyes at night',
|
||
nameB: 'B · Ivory Indigo',
|
||
descB: 'Light base with white cards, clearest in daylight',
|
||
nameC: 'C · Warm Sand Green',
|
||
descC: 'Warm off-white + deep green, calm and steady',
|
||
},
|
||
top: {
|
||
refresh: 'Refresh this page',
|
||
},
|
||
common: {
|
||
all: 'All',
|
||
export: 'Export',
|
||
refresh: 'Refresh',
|
||
admin: 'admin',
|
||
logout: 'Sign out',
|
||
yes: 'Yes',
|
||
no: 'No',
|
||
none: '—',
|
||
empty: '(empty)',
|
||
ok: 'OK',
|
||
fail: 'FAIL',
|
||
copy: 'Copy',
|
||
copyOk: 'Copied',
|
||
copyFail: 'Copy failed — select the text manually',
|
||
save: 'Save',
|
||
delete: 'Delete',
|
||
reset: 'Reset',
|
||
search: 'Search',
|
||
confirm: 'Confirm',
|
||
cancel: 'Cancel',
|
||
},
|
||
login: {
|
||
title: 'API Gateway Console',
|
||
userPlaceholder: 'Username',
|
||
passPlaceholder: 'Password',
|
||
btn: 'Sign in',
|
||
errEmpty: 'Please enter account and password',
|
||
err401: 'Incorrect username or password',
|
||
err429: 'Too many attempts, rate-limited. Please try again later',
|
||
err403: 'Sign-in denied (account disabled or invalid role)',
|
||
errConn: 'Cannot reach gateway — is it running on 8808?',
|
||
success: 'Signed in',
|
||
},
|
||
dashboard: {
|
||
modelCount: 'Models',
|
||
providers: 'Providers',
|
||
inflight: 'In-flight',
|
||
callsMix: 'Calls ok/fail',
|
||
provShare: 'Provider success share',
|
||
latency: 'Model latency P50 / P95 (s)',
|
||
providerStatus: 'Provider status',
|
||
mediaCircuit: 'Media circuit',
|
||
circuit: 'Circuit',
|
||
modelCountShort: 'Models',
|
||
keySet: 'Key set',
|
||
name: 'Name',
|
||
modelChain: 'Model chain',
|
||
gatewayInfo: 'Gateway info',
|
||
running: 'Running',
|
||
uptime: 'Uptime',
|
||
gwVersion: 'Gateway version',
|
||
concurrency: 'In-flight {cur} / peak {peak}',
|
||
latTitle: 'Model latency P50 / P95 (s)',
|
||
circ_closed: 'CLOSED',
|
||
circ_half_open: 'HALF_OPEN',
|
||
circ_open: 'OPEN',
|
||
circ_not_tracked: 'Not tracked',
|
||
noData: 'No data',
|
||
requests: 'Total requests',
|
||
successRate: 'Success rate',
|
||
avgLatency: 'Avg latency',
|
||
noteOkFail: 'ok {ok} · fail {fail}',
|
||
noteFail: '{n} failed',
|
||
noteP95: 'highest P95 {v}s',
|
||
noteInflight: '{n} in flight',
|
||
modelCalls: 'Calls by model',
|
||
colModel: 'Model',
|
||
colCalls: 'Calls',
|
||
colLatency: 'Avg latency',
|
||
colRate: 'Success rate',
|
||
noModels: 'No calls recorded yet',
|
||
share: 'Share',
|
||
live: 'Live',
|
||
byProtocol: 'Protocol lines',
|
||
byProtocolSub: 'Models per line',
|
||
modelCountN: '{n} models',
|
||
},
|
||
metrics: {
|
||
uptime: 'Uptime',
|
||
inflight: 'In-flight/peak',
|
||
promptTokens: 'Prompt tokens',
|
||
completionTokens: 'Completion tokens',
|
||
callsTotal: 'Total calls (ok/fail)',
|
||
modelCalls: 'Calls per model (success / fail)',
|
||
provShare: 'Provider success share',
|
||
latency: 'Model latency P50 / P95 (s)',
|
||
success: 'Success',
|
||
fail: 'Fail',
|
||
ok: 'ok',
|
||
none: 'None',
|
||
circuitStatus: 'Circuit breaker status',
|
||
provider: 'Provider',
|
||
state: 'State',
|
||
recentFailures: 'Recent failures',
|
||
window: 'Window',
|
||
threshold: 'Threshold',
|
||
cooldown: 'Cooldown(s)',
|
||
probing: 'Probing',
|
||
stateClosed: 'CLOSED',
|
||
stateHalf: 'HALF_OPEN',
|
||
stateOpen: 'OPEN',
|
||
loadErr: 'Failed to load metrics',
|
||
requests: 'Total requests',
|
||
failCount: 'Failures',
|
||
tokenUsage: 'Token usage',
|
||
cachedTokens: 'Cached tokens',
|
||
cachedNote: '{v}% of input',
|
||
reasoningTokens: 'Reasoning tokens',
|
||
reasoningNote: '{v}% of output',
|
||
tokenNote: 'in {p} / out {c}',
|
||
inflightPeak: 'In flight / peak',
|
||
failRateNote: 'failure rate {v}%',
|
||
snapshot: 'Live snapshot',
|
||
circuitCard: 'Circuit breakers',
|
||
byProvider: 'Calls by provider (success / fail)',
|
||
},
|
||
logs: {
|
||
all: 'All',
|
||
chat: 'Chat',
|
||
image: 'Image',
|
||
video: 'Video',
|
||
autoRefresh: 'Auto-refresh',
|
||
method: 'Method',
|
||
result: 'Result',
|
||
success: 'Success',
|
||
fail: 'Fail',
|
||
searchPlaceholder: 'Search model/provider/path/request/response',
|
||
count: '{n} entries',
|
||
clearFilter: 'Clear filter',
|
||
time: 'Time',
|
||
path: 'Path',
|
||
modelProvider: 'Model / provider',
|
||
reqContent: 'Request',
|
||
respContent: 'Response',
|
||
empty: 'No logs',
|
||
emptyFiltered: 'No entries match the current filters ({n} loaded — clear other filters or the keyword)',
|
||
media: 'Download',
|
||
request: 'Request',
|
||
polls: 'Polls ({n})',
|
||
response: 'Response',
|
||
error: 'Error',
|
||
rid: 'rid',
|
||
caller: 'Caller',
|
||
reqModel: 'Requested model',
|
||
served: 'Served model',
|
||
provider: 'Provider',
|
||
streaming: 'Streaming',
|
||
loadErr: 'Failed to load logs',
|
||
},
|
||
users: {
|
||
viewLogs: 'View logs',
|
||
viewActivity: 'Activity',
|
||
tabLogs: 'Call logs',
|
||
tabImages: 'Images',
|
||
tabVideos: 'Videos',
|
||
noData: 'No records',
|
||
// Admin downloads this account's generated images / videos (proxied by the gateway)
|
||
dl: 'Download',
|
||
dlOk: 'Download started',
|
||
dlFail: 'Download failed: {msg}',
|
||
dlNoSrc: 'This record has no downloadable URL yet',
|
||
},
|
||
chat: {
|
||
newChat: 'New chat',
|
||
session: 'Conversation',
|
||
thisConv: 'This conversation',
|
||
model: 'Model',
|
||
elapsed: 'Elapsed',
|
||
msgsN: '{n} msgs',
|
||
regenerate: 'Regenerate',
|
||
copyAll: 'Copy all',
|
||
tempShort: 'Temp',
|
||
maxShort: 'Max',
|
||
systemShort: 'System',
|
||
visionReady: 'Vision ready · images supported',
|
||
visionOff: 'This model does not accept images',
|
||
emptyChain: 'empty',
|
||
phDefault: 'Default',
|
||
phOptional: 'Optional',
|
||
totalTokens: 'Total {n}',
|
||
uploadedImage: 'Uploaded image',
|
||
reasoningTag: 'Reasoning',
|
||
textModels: 'Text models',
|
||
params: 'Parameters',
|
||
clear: 'Clear',
|
||
generating: 'Generating…',
|
||
empty: 'Start a conversation with the gateway (pick a model below)',
|
||
servedBy: 'by {provider}',
|
||
requestedTo: 'requested {req} → served {served}',
|
||
reasoning: 'Reasoning',
|
||
thinking: 'Thinking…',
|
||
emptyResp: '(empty response)',
|
||
youError: 'Error: {msg}',
|
||
placeholder: 'Type a message, Enter to send, Shift+Enter for newline',
|
||
imgUpload: 'Upload image',
|
||
imgUrlBtn: 'Image URL',
|
||
imgPh: 'Paste an image URL, Enter to add',
|
||
imgAdd: 'Add',
|
||
imgMax: 'At most {n} images per message',
|
||
imgPickErr: 'Image processing failed: {msg}',
|
||
visionWarn: 'Model {model} does not accept image input — images will be ignored or rejected. Switch to a vision-capable model.',
|
||
paramLocked: 'Parameters pinned by the gateway: {p} (upstream hard limit; what you set here is overridden before sending)',
|
||
useVision: 'Switch to {model}',
|
||
waiting: 'Awaiting input…',
|
||
send: 'Send',
|
||
stop: 'Stop',
|
||
stopped: 'Stopped',
|
||
temp: 'Temperature',
|
||
topP: 'top_p',
|
||
maxTokens: 'max_tokens (empty = default)',
|
||
streaming: 'Streaming output',
|
||
system: 'System prompt (prepended to each conversation)',
|
||
loadModelsErr: 'Failed to load models: {msg}',
|
||
pickModel: 'Pick a model',
|
||
},
|
||
images: {
|
||
historyTitle: 'History',
|
||
historySub: '{n} images',
|
||
refsLabel: 'Reference images',
|
||
title: 'Image generation',
|
||
model: 'Image model',
|
||
size: 'Size',
|
||
ratio: 'Ratio',
|
||
refsUpload: 'Upload reference',
|
||
refsUrlBtn: 'Reference URL',
|
||
refsHint: '(empty = text-to-image; uploaded images are compressed in-browser, uploads and URLs can be mixed)',
|
||
refsMax: 'At most {n} reference images',
|
||
refPickErr: 'Image processing failed: {msg}',
|
||
refsPH: 'Image-to-image / multi-image: image URLs or data:, one per line (empty = text-to-image)',
|
||
count: 'Count',
|
||
countTip: 'The upstream API returns 1 image per call; multiple images are generated one by one',
|
||
genProgress: 'Generating {i}/{n}',
|
||
partialFail: 'Generated {done}, image #{i} failed: {msg}',
|
||
refsUsed: '{n} reference image(s)',
|
||
emptyResp: 'The upstream returned no image',
|
||
placeholder: 'Describe the image to generate (style / subject / composition)',
|
||
servedBy: 'Generated by {provider}',
|
||
clear: 'Clear history',
|
||
confirmClear: 'Clear all {n} image record(s)? They are also deleted server-side (other devices lose them too). This cannot be undone.',
|
||
generate: 'Generate',
|
||
promptRow: 'Prompt',
|
||
imgLoadErr: 'Image failed to load',
|
||
dl: 'Download',
|
||
dlOk: 'Download started',
|
||
dlFail: 'Download failed: {msg}',
|
||
dlNoSrc: 'This image has no downloadable URL',
|
||
empty: 'Generated images appear here',
|
||
loadErr: 'Failed to generate image',
|
||
},
|
||
videos: {
|
||
taskTitle: 'Tasks',
|
||
fixed: 'Fixed',
|
||
title: 'Video generation',
|
||
model: 'Video model',
|
||
mode: 'Scenario',
|
||
modeText: 'Text to video',
|
||
modeKeyframe: 'Keyframe (img2video)',
|
||
modeReference: 'Reference img/audio',
|
||
firstFrame: 'First frame',
|
||
lastFrame: 'Last frame',
|
||
upload: 'Upload image',
|
||
uploadImg: 'Upload reference',
|
||
uploadAudio: 'Upload audio',
|
||
useUrl: 'Use URL',
|
||
urlPH: 'or paste an image URL',
|
||
uploadTip: 'Uploaded material is compressed to a data URI in the browser and sent directly (no public URL needed)',
|
||
pickErr: 'Failed to process material: {msg}',
|
||
refMax: 'At most {n} reference images',
|
||
audMax: 'At most {n} reference audios',
|
||
count5: '{n}/5 selected',
|
||
count3: '{n}/3 selected',
|
||
media: 'Media',
|
||
seed: 'Seed',
|
||
seedPH: 'empty = random',
|
||
keyframeTip: 'Give at least one of first/last frame — upload or paste a URL (first = opening shot, last = closing shot)',
|
||
refImagesPH: 'Reference image URLs, one per line (max 5)',
|
||
refAudiosPH: 'Reference audio URLs, one per line (max 3)',
|
||
referenceTip: 'In the prompt, <Picture N> / <Audio N> refer to the Nth material',
|
||
placeholderRef: 'Describe the video and camera move (use <Picture 1> / <Audio 1> for reference materials)',
|
||
needFrame: 'Keyframe mode needs at least one uploaded image or image URL',
|
||
needRef: 'Reference mode needs at least one image or audio (upload or URL)',
|
||
// Round 30: the material summary on the card (was hardcoded Chinese in mediaSummary())
|
||
mediaFirst: 'first',
|
||
mediaLast: 'last',
|
||
mediaImg: 'img',
|
||
mediaAud: 'audio',
|
||
mediaUrl: 'URL',
|
||
duration: 'Duration (s)',
|
||
aspect: 'Aspect',
|
||
quality: 'Quality',
|
||
placeholder: 'Describe the video content and camera movement',
|
||
async: 'Submit async (return now, poll later)',
|
||
taskCount: 'Tasks {n}',
|
||
clear: 'Clear finished',
|
||
confirmClear: 'Clear {n} finished video task(s)? Records and video links are also deleted server-side. This cannot be undone.',
|
||
generate: 'Generate video',
|
||
status: 'Status',
|
||
task: 'Task',
|
||
service: 'Service',
|
||
promptRow: 'Prompt',
|
||
elapsed: 'Elapsed',
|
||
subElapsed: '{n}s elapsed',
|
||
subWait: 'waiting {n}s',
|
||
raw: 'Raw response',
|
||
empty: 'Submitted video tasks appear here',
|
||
failText: 'Generation failed',
|
||
doneText: 'Done',
|
||
doingText: 'Generating…',
|
||
doneMsg: 'Video ready',
|
||
dl: 'Download video',
|
||
dlOk: 'Download started',
|
||
dlFail: 'Download failed: {msg}',
|
||
dlNoSrc: 'This task has no downloadable video yet',
|
||
submitMsg: 'Submitted task {id}',
|
||
loadErr: 'Failed to load videos',
|
||
},
|
||
agents: {
|
||
title: 'Agents',
|
||
sub: 'Assistants that get work done — each has its own params and sessions',
|
||
subHint: '{n} agents · engine {engine} ({url}) · {scope}',
|
||
scopeAdmin: 'Admins only',
|
||
scopeOpen: 'Available to {n}',
|
||
new: 'New',
|
||
newAgent: 'New agent',
|
||
empty: 'No agents yet',
|
||
emptyPick: 'Pick an agent on the left',
|
||
emptyHint: 'Or create one — a "model + params + own session" assistant',
|
||
tabChat: 'Chat',
|
||
tabConfig: 'Config',
|
||
tabRuns: 'Runs',
|
||
pickAgent: 'Pick an agent on the left',
|
||
engineBadge: 'Agent',
|
||
statusPublished: 'Published',
|
||
statusDraft: 'Draft',
|
||
statusRetired: 'Archived',
|
||
newChat: 'New chat',
|
||
thisChat: 'This chat',
|
||
engineReady: 'Engine ready',
|
||
engineDown: 'Engine unreachable',
|
||
engineDownHint: 'Engine not ready, please try again later',
|
||
retry: 'Retry',
|
||
stop: 'Stop',
|
||
stopRun: 'Background',
|
||
running: 'Generating',
|
||
inputPlaceholder: 'Say something… this agent can read/write files and run commands on the server',
|
||
execSteps: 'Ran {n} steps',
|
||
execRunning: 'Running',
|
||
tokens: 'Tokens',
|
||
elapsed: 'Elapsed',
|
||
toolsUsed: 'Tools',
|
||
interrupted: '⚠ Engine connection lost, this turn is incomplete',
|
||
cfgBasic: 'Basics',
|
||
cfgBasicSub: 'Name and slug are editable',
|
||
cfgName: 'Name',
|
||
cfgSlug: 'slug',
|
||
cfgSlugHint: 'Must not clash with an existing model id or alias',
|
||
cfgDesc: 'Description',
|
||
cfgModel: 'Model',
|
||
cfgModelPick: 'Pick a model',
|
||
cfgModelVision: 'vision',
|
||
cfgModelSwitched: 'Switched to {model}',
|
||
cfgModelAtChat: 'Switch it at the bottom-left of the chat box (shared by all agents, takes effect immediately)',
|
||
cfgExec: 'Execution',
|
||
cfgExecSub: 'Affects server safety, read-only for now',
|
||
cfgEngine: 'Engine',
|
||
cfgWorkspace: 'Workspace',
|
||
cfgParams: 'Parameters',
|
||
cfgTemp: 'temperature',
|
||
cfgMaxTokens: 'max_tokens',
|
||
cfgTopP: 'top_p',
|
||
cfgSuffix: 'Role suffix (system_suffix)',
|
||
cfgSuffixHint: 'Role add-on for this agent, layered on top of the base instructions (max 2000 chars)',
|
||
cfgAccess: 'Access',
|
||
cfgAccessAdmin: 'Admins only',
|
||
cfgReadonly: 'read-only',
|
||
save: 'Save',
|
||
saved: 'Saved',
|
||
test: 'Test run',
|
||
testing: 'Testing…',
|
||
testOk: 'OK ({ms}ms)',
|
||
testFail: 'Failed',
|
||
archive: 'Archive',
|
||
restore: 'Restore',
|
||
archived: 'Archived',
|
||
showRetired: 'Show archived',
|
||
limitReached: 'Limit reached ({n})',
|
||
limitHint: 'Limit reached ({n}); archive unused agents first',
|
||
sharedNote: 'Each agent has its own params and sessions; the model is shared',
|
||
riskNote: 'This agent can read/write files and run commands on the server',
|
||
runsTotal: 'Calls',
|
||
runsTools: 'Tool calls',
|
||
runsTokens: 'tokens',
|
||
runsFail: 'Failure rate',
|
||
runsLast7: 'Last 7 days',
|
||
runsDetail: 'Run detail',
|
||
runsDetailSub: 'Who used it and when',
|
||
colTime: 'Time',
|
||
colAccount: 'Account',
|
||
colRounds: 'Rounds',
|
||
colTools: 'Tool calls',
|
||
colTokens: 'tokens',
|
||
colMs: 'Elapsed',
|
||
colStatus: 'Status',
|
||
runOk: 'OK',
|
||
runStopped: 'Stopped',
|
||
runTimeout: 'Timeout',
|
||
attach: 'Attach image',
|
||
imgMax: 'Up to {n} images',
|
||
imgErr: 'Failed to pick image: {msg}',
|
||
imgCount: '{n}/{max}',
|
||
listFootHint: 'The model is shared; params, role suffix and sessions are per-agent.',
|
||
runDefaultTitle: 'Chat',
|
||
cacheHit: 'cache {n}',
|
||
meLabel: 'Me',
|
||
aiLabel: 'Assistant',
|
||
runsEmpty: 'No runs yet',
|
||
formName: 'Name',
|
||
formSlug: 'slug',
|
||
formDesc: 'Description',
|
||
formTemp: 'temperature (optional)',
|
||
formSuffix: 'Role suffix (optional)',
|
||
create: 'Create',
|
||
cancel: 'Cancel',
|
||
confirmDelete: 'Archive this agent? (not deleted, can be restored)',
|
||
deleteOk: 'Archived',
|
||
},
|
||
models: {
|
||
modelListTitle: 'Model list',
|
||
name: 'Name',
|
||
providerCount: 'Providers',
|
||
id: 'Model ID',
|
||
type: 'Type',
|
||
provider: 'Provider',
|
||
keySet: 'Key set',
|
||
text: 'Text',
|
||
image: 'Image',
|
||
video: 'Video',
|
||
model: 'Models',
|
||
textModels: 'Text models',
|
||
imageModels: 'Image models',
|
||
videoModels: 'Video models',
|
||
providers: 'Providers',
|
||
loadErr: 'Failed to load models',
|
||
capability: 'Capability',
|
||
visionTag: 'Vision',
|
||
freeTag: 'Free',
|
||
freeHint: 'Officially free model: no usage-based billing (quota is set by the vendor; both the Agnes and OpenCode Go free tiers are labelled)',
|
||
freeLimitedTag: 'Limited-time free',
|
||
freeLimitedHint: 'Officially "limited-time free": the offer has an expiry — the daily sync updates this label when the vendor changes it',
|
||
paramTag: 'Params locked',
|
||
paramLocked: 'Parameters pinned by the gateway: {p} (upstream hard limit; values from clients and the speed test are overridden)',
|
||
allTextModels: 'All text models',
|
||
providerCard: 'Providers',
|
||
keyOk: 'Key configured',
|
||
keyMissing: 'Key missing',
|
||
chainCount: '{n} models',
|
||
providerCount2: '{n} providers',
|
||
speedtest: 'Test speed',
|
||
testing: 'Probing latency of every text model…',
|
||
testingShort: 'Testing…',
|
||
testOne: 'Test this model',
|
||
latency: 'Latency',
|
||
failed: 'Failed',
|
||
speedtestDone: 'Speed test done, {n} models',
|
||
speedtestFail: 'Speed test failed',
|
||
speedtestHint: 'Latency probed per protocol line',
|
||
textModelCount: '{n} text models',
|
||
// Round 27: the supported-formats column (three protocol lines). Line names are the
|
||
// vendors' own endpoint names, so they are not translated.
|
||
protocols: 'Supported formats',
|
||
protocolHint: 'Which lines this model accepts: chat/completions (OpenAI-compatible), messages (Anthropic), responses (OpenAI Responses). Any other format is rejected with 400 at the gateway edge — the gateway never translates between formats and never silently swaps in another model',
|
||
protocolNa: 'N/A',
|
||
protocolNaHint: 'Image / video models use the dedicated /v1/images/generations and /v1/videos endpoints and are not tied to the three protocol lines',
|
||
protocolHintRow: 'Supported formats: {lines} ',
|
||
probedLine: 'probed via {p}',
|
||
// Round 31: virtual model id (alias) — clients always send model: wjd, the gateway
|
||
// forwards to the model an admin picks. An alias is not a model: it never shows up in
|
||
// the speed-test list or the model counts, only in this card.
|
||
aliasCard: 'Virtual model id (alias)',
|
||
aliasLine: 'Only the chat/completions (OpenAI) format is supported: calling {id} on /v1/messages or /v1/responses is rejected with 400 at the gateway (it never translates formats).',
|
||
aliasInherit: 'Vision, forced params and pricing all follow the target model — the alias stores no configuration of its own, so switching the target switches everything.',
|
||
aliasName: 'Alias id',
|
||
aliasTarget: 'Target model',
|
||
aliasTargetPick: 'Pick a text model that supports chat/completions',
|
||
aliasPickHint: 'Only text models that support chat/completions can be picked; everything else is greyed out (image/video models, and models that only speak messages or responses).',
|
||
aliasCurrentTarget: 'Currently points to',
|
||
aliasEnabled: 'Enabled',
|
||
aliasDisabled: 'Disabled',
|
||
aliasNotConfigured: 'No target model configured yet — clients sending model: {id} get "unknown model".',
|
||
aliasSave: 'Save mapping',
|
||
aliasSaved: '{id} → {target} is live',
|
||
aliasSaveFail: 'Save failed',
|
||
},
|
||
history: {
|
||
saveFail: 'History could not be saved to the gateway (it may be lost on refresh) — check your session or network',
|
||
offline: 'History API unreachable — showing local browser cache only',
|
||
},
|
||
settings: {
|
||
keyUnlimited: 'Unlimited',
|
||
connInfo: 'Connection',
|
||
gwAddress: 'Gateway URL',
|
||
gwVersion: 'Gateway version',
|
||
loginUser: 'User',
|
||
sessionLen: 'Session duration',
|
||
hours: '{n} hours',
|
||
language: 'Language',
|
||
langTip: 'Switch interface language (saved locally)',
|
||
theme: 'Appearance',
|
||
appearance: 'Appearance & language',
|
||
themeSub: 'B is the default; switch to A / C anytime',
|
||
current: 'Current',
|
||
switch: 'Switch',
|
||
followSystem: 'Follow system dark mode',
|
||
followSub: 'Use theme A automatically when the system goes dark',
|
||
langSub: 'Full Chinese / English coverage',
|
||
myKeys: 'My API keys',
|
||
myKeysSub: 'Create / copy / delete, up to 3 per account',
|
||
manage: 'Manage',
|
||
gwCard: 'Gateway info',
|
||
account: 'Account',
|
||
logoutTip: 'Signing out ends this session; log in again with account and password.',
|
||
logoutBtn: 'Sign out',
|
||
chatDefaults: 'Chat default parameters',
|
||
defsTip: 'Used as defaults for a new chat (already-adjusted params are untouched).',
|
||
defaultModel: 'Default model',
|
||
temperature: 'Temperature',
|
||
topP: 'top_p',
|
||
maxTokens: 'max_tokens (empty = gateway default)',
|
||
streaming: 'Streaming output',
|
||
system: 'System prompt',
|
||
save: 'Save defaults',
|
||
saveOk: 'Defaults saved — applied to new chats',
|
||
resetOk: 'Restored to defaults',
|
||
providerStatus: 'Provider status',
|
||
modelsCount: 'Models',
|
||
userManagement: 'Account management (admin)',
|
||
gwConfigBtn: 'Open',
|
||
gwConfigSub: 'Tune gateway / providers / pricing — applied on save',
|
||
gwConfig: 'Gateway config (admin)',
|
||
userCol: 'User',
|
||
roleCol: 'Role',
|
||
accountDeleted: 'Account {name} deleted (sessions and API keys revoked)',
|
||
revokeKeys: 'Revoke all keys',
|
||
revokeKeysOk: 'Revoked {n} API key(s) of {name}',
|
||
resetPwOk: 'Password of {name} reset to the username; {n} session(s) kicked out',
|
||
confirmDeleteUser: 'Delete account {name}? Its sessions and API keys stop working immediately. This cannot be undone.',
|
||
confirmResetPw: 'Reset the password of {name} to its username? Active sessions of that account will be signed out.',
|
||
confirmRevokeKeys: 'Revoke every API key of {name}? Callers must create new keys to keep using the gateway.',
|
||
userPwOptional: 'Initial password (empty = same as username)',
|
||
confirm: 'Confirm',
|
||
confirmDeleteKey: 'Delete this API key? Clients using it get 401 immediately and need a new key.',
|
||
usersTip: 'Create accounts / reset passwords / disable or enable / delete (admin only)',
|
||
userCreated: 'Created',
|
||
// Round 24: admin can disable / enable an account
|
||
userDisabled: 'Disabled',
|
||
userDisabledAt: 'Disabled at {ts}',
|
||
disableUser: 'Disable',
|
||
enableUser: 'Enable',
|
||
confirmDisableUser: 'Disable account {name}? It can no longer sign in, its API keys stop working immediately (keys are kept and work again once re-enabled), and its signed-in sessions are kicked out.',
|
||
userDisabledOk: 'Account {name} disabled ({n} session(s) kicked out, API keys suspended)',
|
||
userEnabledOk: 'Account {name} enabled — old password and API keys work again',
|
||
namesRule: 'Username must be alphanumeric; default password = username',
|
||
changePw: 'Change password',
|
||
newPw: 'New password (min 8 chars)',
|
||
pwTip: 'You are signed in — just set a new password, no current password needed. All sessions are revoked and you will sign in again with the new one.',
|
||
pwNeedNew: 'Please enter a new password',
|
||
pwChanged: 'Password updated — please sign in again',
|
||
keyLabel: 'Label (optional)',
|
||
keyHint: 'Key prefix',
|
||
keyCreated: 'Created',
|
||
createKey: 'Create API Key',
|
||
keyCol: 'API key',
|
||
keyLimitFull: 'Limit reached',
|
||
keyLegacyNoEcho: '(created before plaintext echo — cannot be shown again)',
|
||
noKey: 'You have no API Key — create one to use as a Bearer credential externally',
|
||
userMgmt: 'Account management (admin)',
|
||
newUserName: 'New username (alphanumeric)',
|
||
newUserTip: 'Create account; default password = username (custom password ≥ 8 chars)',
|
||
createUser: 'Create account',
|
||
keyCount: 'Keys',
|
||
resetPw: 'Reset password',
|
||
loadErr: 'Failed to load settings',
|
||
},
|
||
apidoc: {
|
||
copyCurl: 'Copy curl example',
|
||
viewDoc: 'View API docs',
|
||
title: 'API usage guide',
|
||
intro: 'Use the API Key above as the Bearer credential to call the gateway (OpenAI compatible). API keys can only call models; creating keys / changing passwords / managing accounts require a web session — a key hitting admin endpoints gets 403.',
|
||
baseTitle: 'Basics',
|
||
baseUrl: 'Base URL',
|
||
auth: 'Auth',
|
||
authVal: 'Header: Authorization: Bearer <your API Key>',
|
||
modelPick: 'Model selection',
|
||
modelPickVal: 'model takes a real model id (e.g. agnes-3.0-flash). Each of the three lines forwards its own native protocol and the gateway never translates formats, so a wrong line returns 400 (listing the lines that model supports)',
|
||
formats: 'Supported formats',
|
||
formatsVal: 'Which lines a model accepts is listed in the Supported formats column on the Providers & Models page: chat/completions, messages, responses. Each line is forwarded verbatim (no field rewriting, no cross-format translation), so write your URL and body exactly as the vendor SDK expects',
|
||
ctype: 'Request format',
|
||
ctypeVal: 'application/json; chat supports SSE streaming (stream: true)',
|
||
endpoints: 'Endpoints',
|
||
colMethod: 'Method',
|
||
colPath: 'Path',
|
||
colDesc: 'Description',
|
||
epModels: 'Models (with vision flag and supported protocol lines)',
|
||
epChat: 'Chat completions (OpenAI compatible, streaming + image input)',
|
||
epMessages: 'Chat completions (Anthropic Messages format, forwarded verbatim)',
|
||
epResponses: 'Chat completions (OpenAI Responses format, forwarded verbatim)',
|
||
epImages: 'Image generation / image-to-image (n must be 1; call repeatedly for more)',
|
||
epVideoCreate: 'Video generation (async, returns video_id immediately)',
|
||
epVideoPoll: 'Poll a video task (every ~5s; returns throttled when upstream rate-limits)',
|
||
epDownload: 'Download generated images / videos through the gateway (bypasses upstream hotlink protection and expiry; allow-listed hosts only)',
|
||
epHistory: 'Read your own history (images / videos / chats)',
|
||
epLogs: 'Your own call log',
|
||
epMetrics: 'Metrics snapshot (incl. circuit breaker states)',
|
||
epHealth: 'Health check (version / provider status)',
|
||
exChat: 'Example · chat',
|
||
exMessages: 'Example · chat (Anthropic Messages format)',
|
||
exResponses: 'Example · chat (OpenAI Responses format)',
|
||
exImg: 'Example · image generation',
|
||
exVideo: 'Example · video generation + polling',
|
||
exPy: 'Example · Python (OpenAI SDK compatible)',
|
||
// Comments / sample payloads inside the code samples (mirror of zh.ts)
|
||
sampleChat: 'Hello, introduce yourself',
|
||
sampleModelMessages: 'minimax-m2.7',
|
||
sampleModelResponses: 'grok-4.6',
|
||
sampleImg: 'Neon city street at night',
|
||
sampleVideo: 'Slow camera push-in',
|
||
sampleStep1: 'submit a task (async, returns video_id immediately)',
|
||
sampleStep2: 'poll every 5s (a throttled reply means wait, then retry)',
|
||
notes: 'Notes',
|
||
noteVision: 'For image input use a vision model (agnes-3.0-flash, marked Vision in the list). The gateway no longer swaps models for you: a non-vision model receives the request as-is',
|
||
noteCross: 'No cross-format translation: which lines a model accepts is decided by the Supported formats column on the Providers & Models page (e.g. minimax-m2.7 only speaks messages, grok-4.6 only speaks responses). A wrong format is rejected with 400 at the gateway edge, listing the lines that model does support — your request is never silently rewritten, and no other model is swapped in',
|
||
noteConvId: 'Optional conversation_id (chat-style requests): reusing the same string for one conversation raises the upstream prompt-cache hit rate. It is a gateway-internal field and is never forwarded as-is — the gateway derives the real session id per account, so accounts never share a cache namespace; omit it and each call gets a random one',
|
||
noteN1: 'Image n must be 1 (upstream limit) — call once per image; n≠1 is rejected with a clean 400.',
|
||
noteVideo: 'Video seconds: 4–12 only; size is fixed at 720P; 6 aspect ratios (21:9/16:9/4:3/1:1/3:4/9:16); mode=text / keyframe / reference.',
|
||
notePoll: 'Do not poll faster than 5s (upstream answers 429 "too frequent"; the gateway returns throttled so you can back off).',
|
||
noteMedia: 'Assets (reference images / first-last frames / audio / chat images) accept data:image/...;base64,... or a public URL; data URIs avoid exposing the file, but keep each request body under 2MB.',
|
||
noteDownload: 'Upstream image / video URLs may expire or block hotlinking. To save a file, fetch /v1/media/download?url=... with your key and let the gateway retrieve it; URLs outside the allow-list are rejected with 400.',
|
||
noteKey: 'If a key leaks, delete it here (401 immediately) or revoke all keys of the account from the Users page.',
|
||
noteAudit: 'Every call is logged per account on the Logs page (you see yours; admins can inspect each account from the Users page).',
|
||
copyBase: 'Copy URL',
|
||
copyCmd: 'Copy',
|
||
},
|
||
// Round 22: feedback (member submit + progress) / inbox (admin: all + update progress)
|
||
fbStatus: {
|
||
pending: 'Pending',
|
||
doing: 'In progress',
|
||
done: 'Resolved',
|
||
},
|
||
feedback: {
|
||
write: 'Write your feedback',
|
||
placeholder: 'What feels clunky, what feature you want, what is unclear — anything goes',
|
||
attach: 'Add image',
|
||
imagesHint: 'Up to {n} · compressed before upload',
|
||
remove: 'Remove',
|
||
needContent: 'Write something before submitting',
|
||
submit: 'Submit',
|
||
submitted: 'Got it — thanks for the feedback!',
|
||
mine: 'My submissions',
|
||
mineSub: 'Track progress here after submitting',
|
||
empty: 'No feedback submitted yet',
|
||
statusAll: 'All statuses',
|
||
|
||
revoke: 'Withdraw',
|
||
revokeTitle: 'Withdraw this feedback?',
|
||
revokeBody: 'Withdrawing deletes "{n}" permanently — once an admin starts handling it you can no longer withdraw.',
|
||
revoked: 'Withdrawn',
|
||
},
|
||
// Handling log (timeline): submission + every admin action
|
||
fbLog: {
|
||
title: 'Handling log',
|
||
submitted: 'submitted',
|
||
more: 'Show all {n} entries',
|
||
less: 'Collapse',
|
||
},
|
||
inbox: {
|
||
all: 'All accounts',
|
||
allStatus: 'All statuses',
|
||
kw: 'Search content / account',
|
||
empty: 'No feedback yet',
|
||
emptyFiltered: 'Loaded {n} items, none match the current filter',
|
||
count: '{n} total',
|
||
account: 'Account',
|
||
status: 'Status',
|
||
handle: 'Update',
|
||
archAll: 'All',
|
||
archActive: 'Active only',
|
||
archOnly: 'Archived only',
|
||
archived: 'Archived',
|
||
archive: 'Archive',
|
||
unarchive: 'Unarchive',
|
||
delete: 'Delete',
|
||
deleteConfirm: 'Permanently delete this feedback and all its images — cannot be undone. Delete?',
|
||
deleted: 'Deleted',
|
||
archOk: 'Archived',
|
||
unarchOk: 'Unarchived',
|
||
|
||
dialogTitle: 'Update this feedback',
|
||
noteLabel: 'Note (visible to the submitter)',
|
||
notePlaceholder: 'e.g. Reproduced the export button, shipping next release',
|
||
save: 'Save',
|
||
saved: 'Progress updated',
|
||
preview: 'View full size',
|
||
noPreview: 'No preview — click to load the original',
|
||
loading: 'Loading…',
|
||
loadFail: 'Failed to load image',
|
||
imgCount: '{n} image(s)',
|
||
},
|
||
// Round 23: gateway config (admin edits every key of data/gateway.yaml from the UI)
|
||
gc: {
|
||
file: 'Gateway config file',
|
||
fileSub: 'Admin only · applied on save',
|
||
path: 'File',
|
||
restartKeys: 'These need a process restart',
|
||
otherKeys: 'Everything else',
|
||
otherKeysTip: 'Read per request — effective immediately after saving (no restart, no reload wait)',
|
||
saveTip: 'Saving rewrites the whole config file from this page (the old file is backed up as .bak first); secrets are never sent to the browser — only whether they are set.',
|
||
viewYaml: 'View config file',
|
||
save: 'Save & apply',
|
||
saved: 'Saved and applied',
|
||
discard: 'Discard changes',
|
||
editorTitle: 'Config file (gateway.yaml)',
|
||
editorSub: 'Edit the full YAML; click Save to apply',
|
||
exportCfg: 'Export config',
|
||
importCfg: 'Import config',
|
||
importCfgOk: 'Config imported into editor — click Save to apply',
|
||
envTitle: 'API key env vars',
|
||
envSub: 'Stored in data/.env; hidden by default, show / copy / edit',
|
||
envExport: 'Export vars',
|
||
envImport: 'Import vars',
|
||
envImportErr: 'Import vars failed',
|
||
envEmpty: 'No provider uses token_env',
|
||
envSet: 'Set',
|
||
envMissing: 'Missing',
|
||
envShow: 'Show',
|
||
envHide: 'Hide',
|
||
envCopy: 'Copy',
|
||
envCopied: 'Copied',
|
||
envSaved: 'Saved to env & applied',
|
||
saveOk: 'Saved and applied',
|
||
restartPill: 'Restart required',
|
||
restartSaved: 'Changed restart-needed keys: {keys} — take effect after restart',
|
||
backup: 'Backup',
|
||
restore: 'Restore',
|
||
backupOk: 'Backup exported (config + API keys)',
|
||
restoreConfirm: 'This will overwrite the current config and {envs} API-key env vars. Restore?',
|
||
restoreGo: 'Restore',
|
||
cancel: 'Cancel',
|
||
restoreOk: 'Config & API keys restored',
|
||
restoreInvalid: 'Invalid backup file',
|
||
|
||
errTitle: 'Save failed — nothing was changed',
|
||
needRestart: 'restart',
|
||
restartApplied: 'Saved. These need an api-gateway restart to take effect: {keys}',
|
||
savedRestart: 'Saved and applied',
|
||
addItem: 'Add',
|
||
addModel: 'Add model',
|
||
addProvider: 'Add provider',
|
||
addPrice: 'Add pricing',
|
||
delete: 'Delete',
|
||
delProvider: 'Delete provider',
|
||
delConfirm: 'Delete "{name}"? It takes effect once you save.',
|
||
needKey: 'Provider key cannot be empty',
|
||
dupKey: '"{name}" is duplicated — please rename',
|
||
newProvider: '(new provider)',
|
||
unlimited: 'empty = unlimited',
|
||
useServerTimeout: 'empty = server.timeout',
|
||
mediaEmpty: 'empty = unsupported',
|
||
modelId: 'model id',
|
||
modelDisplay: 'display name',
|
||
hdrKey: 'header',
|
||
hdrVal: 'value',
|
||
tokenSet: 'key configured',
|
||
tokenEnvMissing: 'env var not set',
|
||
tokenKeep: 'empty = keep current',
|
||
tokenEmpty: 'empty = none',
|
||
jump: 'Jump to',
|
||
tabServer: 'Server & security',
|
||
tabServerSub: 'Binding, timeout/retry, rate limits, CORS, session TTL and other runtime switches',
|
||
tabProviders: 'Providers & models',
|
||
tabProvidersSub: 'Key source, base URL, image/video endpoints and the model list per provider',
|
||
tabLog: 'Logs & pricing',
|
||
tabLogSub: 'Log level/format/capacity plus model pricing (CNY per million tokens)',
|
||
tabDownload: 'Download proxy',
|
||
tabDownloadSub: 'CDN hosts allowed for the download proxy and the per-file size limit',
|
||
circuit: 'Provider circuit breaker',
|
||
h_circuit: 'A provider failing to the threshold is cooled down; its requests get 503',
|
||
f_c_enabled: 'Enable circuit breaker',
|
||
f_c_failure_threshold: 'Failure threshold',
|
||
f_c_cooldown: 'Cooldown (s)',
|
||
f_c_window: 'Window (s)',
|
||
h_c_enabled: 'Off = never skip a failing provider',
|
||
h_c_failure_threshold: 'Opens the circuit once failures reach this count in the window',
|
||
h_c_cooldown: 'While open the provider is skipped; it half-opens automatically after the cooldown',
|
||
h_c_window: 'Counts failures inside the window (not necessarily consecutive)',
|
||
f_host: 'Bind address',
|
||
h_host: '127.0.0.1 keeps it local/reverse-proxy only; 0.0.0.0 exposes the port (auth still always on)',
|
||
f_port: 'Port',
|
||
h_port: 'Production uses 8808 and Nginx points at it — change the proxy too',
|
||
f_timeout: 'Upstream timeout (s)',
|
||
h_timeout: 'Per upstream request timeout',
|
||
f_retry: 'Retries for direct model id',
|
||
h_retry: 'Retries for the same model (incl. the first try)',
|
||
f_health_auth: 'Require auth on /health',
|
||
// vue-i18n parses {...} as a placeholder: literal braces must be written {'{'} / {'}'},
|
||
// otherwise the whole message fails to compile (and the UI using it renders nothing).
|
||
// Double quotes: this message needs the {'{'} literal-brace form (braces are vue-i18n placeholders)
|
||
h_health_auth: "Off = /health only returns {'{'}\"status\":\"ok\"{'}'} for probes, no dashboard data",
|
||
f_hot_reload: 'Config hot reload',
|
||
h_hot_reload: 'Reloads hand-edited files by mtime; saving from this page is always immediate',
|
||
f_hot_reload_interval: 'Hot reload interval (s)',
|
||
h_hot_reload_interval: 'Lower = picks up hand edits sooner, higher = less IO',
|
||
f_metrics_enabled: 'Record metrics',
|
||
h_metrics_enabled: 'Off = /metrics and dashboard counters stop updating (calls still work)',
|
||
f_rate_limit_rps: 'Global QPS per account',
|
||
h_rate_limit_rps: 'Empty = unlimited (provider-level limits live in the provider entry)',
|
||
f_max_body_size: 'Max request body (bytes)',
|
||
h_max_body_size: '~2MB = 2000000; keep it generous if you send images',
|
||
f_cors_origins: 'CORS allowed origins',
|
||
h_cors_origins: '"*" lets any website drive this gateway from a browser (spending your quota); use trusted domains in production',
|
||
f_graceful_shutdown: 'Graceful shutdown wait (s)',
|
||
h_graceful_shutdown: 'Seconds to wait for in-flight requests after a stop signal',
|
||
f_batch_max_concurrency: '/batch max concurrency',
|
||
h_batch_max_concurrency: 'Larger client values are clamped to this',
|
||
f_batch_max_items: '/batch max items',
|
||
h_batch_max_items: 'Beyond this → 400',
|
||
f_webhook_allow_private: 'Allow private webhook callbacks',
|
||
h_webhook_allow_private: 'SSRF guard, off by default; enables 192.168./10./loopback callback URLs',
|
||
f_docs_enabled: 'Expose /docs',
|
||
h_docs_enabled: 'FastAPI built-in API docs — off by default (it lists your endpoints)',
|
||
f_auth_fail_limit_per_min: 'Auth failures per minute',
|
||
h_auth_fail_limit_per_min: 'Per source IP; beyond this → 429 (brute-force guard)',
|
||
f_session_ttl_minutes: 'Web session TTL (minutes)',
|
||
h_session_ttl_minutes: 'Login session lifetime, default 1440 = 24h; affects new logins only',
|
||
pKey: 'Internal key',
|
||
h_pKey: 'Identifier in config (also the /health provider key); renaming creates a new one',
|
||
pName: 'Display name',
|
||
pBaseUrl: 'Base URL',
|
||
pTokenEnv: 'Key env var',
|
||
h_pTokenEnv: 'The secret lives in .env; put the variable name here (e.g. AGNES_API_KEY) instead of plaintext',
|
||
pToken: 'Plaintext key',
|
||
h_pToken: 'Only if you do not use an env var; after saving it is never echoed back',
|
||
pRateLimit: 'Provider QPS limit',
|
||
h_pRateLimit: 'Empty = unlimited (shared by all models of this provider)',
|
||
pHeaders: 'Extra headers',
|
||
h_pHeaders: 'Some providers need specific headers (auth/version); leave empty if not',
|
||
pMedia: 'Image / video endpoints',
|
||
h_pMedia: 'Only for non-standard endpoints (Agnes uses its own paths); all empty = no image/video',
|
||
pModels: 'Models',
|
||
h_pModels: 'Model ids must match upstream; vision = accepts image input (preferred for image chats)',
|
||
mVision: 'vision',
|
||
f_o_log_level: 'Log level',
|
||
h_o_log_level: 'DEBUG is noisy; INFO is fine for production',
|
||
f_o_log_json: 'Structured JSON logs',
|
||
h_o_log_json: 'Enable for ELK / CloudWatch; plain text is nicer for humans',
|
||
f_o_access_log_maxlen: 'Access log capacity',
|
||
h_o_access_log_maxlen: 'Upper bound of "loaded N entries" on the logs page (in-memory ring buffer)',
|
||
pricing: 'Model pricing',
|
||
h_pricing: 'CNY per million tokens, used for estimated_cost_cny; unset = omitted (calls unaffected)',
|
||
priceIn: 'Input price',
|
||
priceOut: 'Output price',
|
||
dlHosts: 'Allowed download hosts',
|
||
h_dlHosts: 'Artifact CDN domains (incl. subdomains); empty = download proxy disabled. Add an entry when the CDN changes',
|
||
f_max_bytes: 'Max file size (bytes)',
|
||
h_max_bytes: 'Default 67108864 = 64MB',
|
||
},
|
||
|
||
// Round 30: user-visible errors from the frontend upload/compression helpers
|
||
// (they used to be hardcoded Chinese, so English toasts still showed Chinese)
|
||
upload: {
|
||
presetChat: 'chat image',
|
||
presetRef: 'reference image',
|
||
presetFrame: 'first/last frame',
|
||
presetVideoRef: 'video reference image',
|
||
presetAudio: 'reference audio',
|
||
presetFeedback: 'feedback image',
|
||
errRead: 'Failed to read the file',
|
||
errDecode: 'Could not decode the image (unsupported format?)',
|
||
errNoCanvas: 'This browser has no Canvas 2D support, so the image cannot be compressed',
|
||
errNotImage: '{name} is not an image file',
|
||
errTooBigAfterCompress: '{name} is still {size} after compression, over the {label} per-item limit of {max}',
|
||
errNotAudio: '{name} is not an audio file (supported: {ext})',
|
||
errAudioTooBig: '{name} is {size}, over the reference-audio limit of {max} (please trim or compress it)',
|
||
errBodyBudget: 'This request body is about {size}, over the gateway upload limit (~{max}).',
|
||
errBodyBudgetTip: 'Please use fewer materials, or smaller images/audio files.',
|
||
},
|
||
}
|