Skip to content

AI-native design editor. Open-source Figma alternative.

6.5 KB
Raw Blame
import { params } from '@nanostores/i18n'

import { i18n } from '#vue/i18n/create'

export const diagnosticsMessageDefaults = {
  usageDescription: 'Local usage summaries from recorded AI requests.',
  usageRequests: 'Requests',
  usageCompleted: 'Completed',
  usageInputTokens: 'Input tokens',
  usageOutputTokens: 'Output tokens',
  usageCachedInputTokens: 'Cached input tokens',
  usageCacheWriteTokens: 'Cache write tokens',
  usageByModel: 'By model',
  usageNoData: 'No usage data recorded.',
  usageNotReported: 'Not reported',
  usageCacheNote: 'Cache values are shown only when the provider reports them.',
  title: 'Diagnostics',
  chatCompleted: 'AI chat completed',
  chatStopped: 'AI chat stopped',
  chatFailed: 'AI chat failed',
  storageFailed: 'Storage operation failed',
  documentFailed: 'Document operation failed',
  acpFailed: 'ACP transport failed',
  mcpFailed: 'MCP connection failed',
  modelStep: params('Model step · {model}'),
  modelStepTokens: params('{input} in · {output} out tokens'),
  toolCompleted: params('Tool: {tool}'),
  toolFailed: params('Tool failed: {tool}'),
  durationMs: params('{ms} ms'),
  runtimeError: params('Error: {name}'),
  preparationDocumentOpen: 'Open document',
  preparationDocumentReload: 'Reload document',
  preparationRecoveryRestore: 'Restore recovered document',
  preparationStorageOpen: 'Open from cloud storage',
  preparationPageSwitch: 'Switch page',
  preparationFontRetry: 'Retry fonts',
  preparationDomImport: 'Import HTML',
  preparationDemoLoad: 'Load demo document',
  preparationCompleted: params('Completed · {duration}'),
  preparationCancelled: params('Cancelled: {reason} · {duration}'),
  preparationFailed: params('Failed: {code} · {duration}'),
  filterLevel: 'Event level',
  filterAll: 'All',
  filterProblems: 'Errors and warnings',
  filterCategory: 'Event category',
  allCategories: 'All categories',
  categoryAI: 'AI',
  categoryDocument: 'Document',
  categoryRenderer: 'Renderer',
  categoryStorage: 'Storage',
  categorySync: 'Sync',
  categoryMCP: 'MCP',
  categoryRecovery: 'Recovery',
  categoryPerformance: 'Performance',
  categoryRuntime: 'Runtime',
  noMatchingEvents: 'No events match these filters.',
  showMore: 'Show more',
  showingEvents: params('{shown} of {total}'),
  retention: 'Diagnostics retention',
  retentionCustom: 'Custom…',
  retentionRange: params('Enter a whole number from {min} to {max}.'),
  retentionDescription: 'Keep up to this many recent events locally.',
  description:
    'Store technical events locally to help troubleshoot OpenPencil. Prompts, design content, credentials, and API keys are excluded.',
  localDiagnostics: 'Local diagnostics',
  localDiagnosticsDescription: 'Keep recent technical events on this device.',
  usageHistory: 'Usage history',
  usageHistoryDescription: 'Keep local AI usage summaries.',
  eventCount: params('{count} events · {size} KB'),
  copy: 'Copy diagnostics',
  save: 'Save diagnostics…',
  clear: 'Clear',
  clearDescription: 'This removes locally stored diagnostic events from this device.',
  cleared: 'Diagnostics cleared.',
  copyFailed: 'Could not copy diagnostics to the clipboard.',
  saveFailed: 'Could not save diagnostics.',
  sharingTitle: 'Sharing with OpenPencil',
  sharingDescription:
    'What this app sends to the OpenPencil team. Your designs, file names, prompts, and keys are never sent.',
  sharingPing: 'Daily anonymous ping',
  sharingPingDescription:
    'Once a day: the app version, operating system, and whether it runs on desktop or the web. No ID.',
  sharingUsageStats: 'Usage stats',
  sharingUsageStatsDescription:
    'Which features and file formats are used, under a random ID that names no person. Off unless you agree.',
  sharingDetails: 'What is sent',
  sharingUnofficialBuild:
    'This build sends nothing. Only official OpenPencil releases send pings or usage stats.',
  sharingDisabledByEnvironment:
    'Turned off by OPENPENCIL_TELEMETRY or DO_NOT_TRACK in your environment.',
  sharingQuestionTitle: 'Help improve OpenPencil?',
  sharingQuestionDescription:
    'Share anonymous usage stats: app launches, file formats, and features used. Never your designs, file names, or prompts. They show us what to build next and that OpenPencil is used, which keeps it funded.',
  sharingQuestionDecline: 'No thanks',
  sharingQuestionAccept: 'Share stats',
  sharingQuestionAccepted: 'Thank you. You can change this in Privacy settings.',
  sharingQuestionDeclined: 'Usage stats stay off. You can change this in Privacy settings.',
  supportTitle: 'Support OpenPencil',
  supportDescription:
    'Enjoying OpenPencil? It’s free and open source, and a donation helps speed up its development and covers the servers and services it runs on.',
  supportNotNow: 'Not now',
  supportDonate: 'Donate',
  sharingLocalData:
    'Usage and Diagnostics keep their records on this device. Diagnostics leave it only in a report you choose to send.',
  reportError: 'Report…',
  reportErrorTitle: 'Report this error',
  reportProblemTitle: 'Report a problem',
  reportErrorDescription:
    'Send this error to the OpenPencil team so it can be fixed. Nothing is sent until you choose Send report.',
  reportProblemDescription:
    'Tell the OpenPencil team what went wrong. Nothing is sent until you choose Send report.',
  reportNoteError: 'What were you doing? (optional)',
  reportNoteProblem: 'What happened?',
  reportNotePlaceholder: 'What you did, what happened, and what you expected instead.',
  reportEmail: 'Email (optional)',
  reportEmailHint: 'Only if you want us to follow up.',
  reportActivity: 'Include recent activity',
  reportActivityDescription:
    'The last 50 events from Diagnostics, such as errors and timings. Never chat messages or tool output.',
  reportDocument: 'Attach this document',
  reportDocumentDescription:
    'Uploads the whole design as a .fig file. Only the OpenPencil team can open it, and it is deleted after 90 days.',
  reportPreview: 'What will be sent',
  reportSend: 'Send report',
  reportSent: 'Report sent. Thank you.',
  reportFailed: 'Could not send the report. Check your connection and try again.',
  reportFilesFailed: 'The report was sent, but the document could not be uploaded.',
  reportDocumentFailed: 'The document could not be attached. You can send the report without it.',
  reportPanic: 'OpenPencil hit an internal error the last time it ran.',
  reportCrashed: 'OpenPencil closed unexpectedly after an error.',
  reportUnexpectedError: 'Something went wrong in OpenPencil.'
} as const

export const diagnosticsMessages = i18n('diagnostics', diagnosticsMessageDefaults)