Files
xiaoyin-gateway/frontend/src/locales/en.ts
T
jidekin 8e346161a6 feat(logs): 详情彻底不截断(捕获 4MiB / 入库 8MiB)+ 实时页按需取全文
- 请求体捕获上限 128KiB → 4MiB(CALLLOG_BODY_MAX);在途缓存条数 128 → 64 控内存
- 入库上限 256KiB → 8MiB(CALLLOG_CONTENT_MAX)
- 新增 GET /logs/entry/{id}:本人或管理员可取该条完整提示词/回复(实时页展开时调用)
- 实时列表仍给 8KB 预览 + body_len/resp_len,展开替换为全文并显示「完整 N 字」
- 实测 285KiB 提示词完整落库与返回
- 版本 2.9.11 → 2.9.12
2026-10-23 16:01:24 +08:00

871 lines
36 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// English locale resource
export default {
nav: {
title: 'API Gateway',
connected: 'Connected to 127.0.0.1:8808',
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 · easy downloads',
subvideos: '720P · 4–12s · async polling',
subagents: 'Assistants that get work done',
submodels: 'Providers / models / formats',
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 service',
circuit: 'Auto-protection',
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: 'Normal',
circ_half_open: 'Recovering',
circ_open: 'Paused',
circ_not_tracked: 'Not monitored',
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: 'Format coverage',
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: 'Provider auto-protection',
provider: 'Provider',
state: 'State',
recentFailures: 'Recent failures',
window: 'Window',
threshold: 'Threshold',
cooldown: 'Pause(s)',
probing: 'Checking',
stateClosed: 'Normal',
stateHalf: 'Recovering',
stateOpen: 'Paused',
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: 'Auto-paused after repeated failures, auto-recovers shortly',
byProvider: 'Calls by provider (success / fail)',
},
logs: {
tabLive: 'Realtime',
tabCalls: 'Call log',
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',
tokens: 'Token usage',
tokPrompt: 'prompt',
tokCompletion: 'completion',
tokCached: 'cached',
tokReasoning: 'reasoning',
cacheHit: 'cache hit',
cacheHint: 'Cache misses are normal for the first request, short prompts, or changed prefixes',
loadingFull: 'Loading full content…',
fullLen: '{n} chars total',
},
calllogs: {
title: 'Call log (persisted)',
count: '{n} rows',
failN: '{n} failed',
avgMs: 'avg {n}ms',
startDate: 'Start',
endDate: 'End',
account: 'Account',
model: 'Model',
result: 'Result',
onlyOk: 'OK only',
onlyFail: 'Failed only',
keyword: 'Keyword (content/rid/IP/UA)',
colTime: 'Time',
colAccount: 'Account',
colModel: 'Model',
colLatency: 'Latency',
colStatus: 'Status',
colStream: 'Stream',
colUa: 'UA',
yes: 'yes',
no: 'no',
detailTitle: 'Call detail',
prompt: 'Prompt (request body, truncated)',
completion: 'Completion (truncated)',
loading: 'Loading…',
usageTitle: 'Monthly usage',
usageMonth: 'Month',
usageTotal: '{n} calls this month',
colCalls: 'Calls',
colOk: 'OK',
colFail: 'Failed',
colFailRate: 'Fail rate',
colModels: 'Models',
colContent: 'Content',
colCache: 'Cache hit',
},
users: {
viewLogs: 'View logs',
viewActivity: 'Activity',
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',
imgExpired: 'Link expired',
},
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 (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: {p} (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: 'Only 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: 'No image returned',
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 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',
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: 'Available',
engineDown: 'Unavailable',
engineDownHint: 'Not reachable right now, please try again later',
retry: 'Retry',
stop: 'Stop',
stopRun: 'Background',
running: 'Generating',
inputPlaceholder: 'Say something… this agent can read/write files and run commands',
execSteps: 'Ran {n} steps',
execRunning: 'Running',
tokens: 'Tokens',
elapsed: 'Elapsed',
toolsUsed: 'Tools',
interrupted: '⚠ Connection lost, this turn is incomplete',
cfgBasic: 'Basics',
cfgBasicSub: 'Name and ID are editable',
cfgName: 'Name',
cfgSlug: 'ID',
cfgSlugHint: 'Must not clash with an existing model name',
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: 'Touches runtime safety, read-only for now',
cfgEngine: 'Runtime',
cfgEngineVal: 'Provided by the platform',
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',
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: 'ID',
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: {p} (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',
testOneRunning: 'Testing this model…',
testOneBusy: 'Up to {n} at a time — wait for one to finish',
latency: 'Latency',
failed: 'Failed',
speedtestDone: 'Speed test done, {n} models',
speedtestFail: 'Speed test failed',
speedtestHint: 'Latency probed per format; per-row ⚡ tests run {n} at a time',
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 call formats this model accepts: chat/completions (OpenAI-compatible), messages (Anthropic), responses (OpenAI Responses). Using any other format returns 400 — requests are never auto-translated and another model is never silently swapped in',
protocolNa: 'N/A',
protocolNaHint: 'Image / video models use the dedicated /v1/images/generations and /v1/videos addresses and don\'t use the three formats above',
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 returns 400 (formats are never auto-translated).',
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. provider protection state)',
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.',
save: 'Save & apply',
editorTitle: 'Config file (gateway.yaml)',
editorSub: 'Edit the full YAML; click Save to apply',
envTitle: 'API key env vars',
envSub: 'Stored in data/.env; hidden by default, show / copy / edit',
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',
// 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)
},
// 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.', },
}