// 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: 'All-round assistants for admins · QwenPaw engine', 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, /