Skip to content

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

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

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

export const aiMessageDefaults = {
  jumpToLatest: 'Jump to latest',
  chatSettings: 'Chat',
  notificationsHint: 'Sent only while OpenPencil is in the background or shows another document.',
  notifyNeedsInput: 'An agent needs you',
  notifyNeedsInputHint: 'A permission request has waited a few seconds without an answer.',
  notifyFinished: 'A reply finished',
  notifyFailed: 'A reply failed',
  notificationsAllow: 'Allow notifications',
  notificationsAllowHint: 'Your browser asks once whether OpenPencil may show notifications.',
  notificationsBlocked:
    'Notifications are blocked for this site. Allow them in the browser’s site settings.',
  notificationsUnsupported: 'This browser cannot show notifications.',
  notificationsSystemHint:
    'If none appear, allow OpenPencil in your system’s notification settings.',
  notifyTitle: params('{agent} · {document}'),
  notifyPermission: 'Asks for permission.',
  notifyPermissionAction: params('Asks for permission: {action}'),
  notifyReplyFinished: 'The AI reply finished.',
  notifyReplyFailed: 'The AI reply stopped with an error.',
  maxAgentSteps: 'Maximum steps per message',
  maxAgentStepsCustom: 'Custom…',
  maxAgentStepsHint:
    'For built-in AI only; ACP and Pi control their own limits. Saved on Enter or when you leave the field, and applied to the next message. Higher limits can increase cost.',
  maxAgentStepsRange: params('Enter a whole number from {min} to {max}.'),
  reasoningDisplay: 'Reasoning display',
  reasoningCollapsed: 'Collapsed by default',
  reasoningWhileThinking: 'Expand while thinking',
  reasoningExpanded: 'Expanded by default',
  continueChat: 'Continue',
  searchChats: 'Search conversations…',
  chatScope: 'Conversation scope',
  thisDocument: 'This document',
  allDocuments: 'All documents',
  noChatsFound: 'No conversations found.',
  chatActions: 'Conversation actions',
  chatHistory: 'Conversation history',
  newChat: 'New chat',
  followAgents: 'Follow agents as they work',
  stopFollowingAgents: 'Stop following agents as they work',
  allChats: 'All chats',
  renameChat: 'Rename',
  saveChatTrace: 'Save trace…',
  chatTraceFailed: 'The chat trace could not be saved.',
  deleteChat: 'Delete',
  chatTitle: 'Conversation title',
  saveChatTitle: 'Save',
  cancelChatAction: 'Cancel',
  deleteChatConfirmation: 'Delete this conversation permanently?',
  deleteChatDescription: params('“{title}” and its messages are removed. This cannot be undone.'),
  chatDocumentHint: 'Open a chat’s document to continue it.',
  chatReadOnly: 'This conversation belongs to another document. Open its document to continue.',
  chatAgentReadOnly:
    'This agent transcript is saved, but its session cannot be resumed here yet. Start a new chat to continue working.',
  chatStorageFailed: 'Chat history could not be saved. Keep this window open and try again.',
  chatHistoryFailed: 'Could not update chat history. Try again.',
  chatInterrupted: 'This response was interrupted.',
  chatAgentWorkingOn: params('{agent} is working on “{page}”'),
  chatGoToPage: 'Go to page',
  connectProvider: 'Connect an AI provider to start chatting.',
  connectionTestSuccess: 'Connected successfully. Model is reachable.',
  connectionTestMissingAPIKey: 'Enter an API key before testing.',
  connectionTestMissingSignIn: 'Sign in before testing.',
  connectionTestMissingBaseURL: 'Enter a base URL before testing.',
  connectionTestMissingModel: 'Enter a model ID before testing.',
  connectionTestInvalidBaseURL:
    'Base URL is invalid. Use a full URL like https://api.example.com/v1.',
  connectionTestAuthFailed: 'Authentication failed. Check your API key.',
  connectionTestSignInExpired: 'The sign-in has expired. Sign in again.',
  connectionTestPlanForbidden: 'Your plan can’t use this model. Choose another model.',
  connectionTestInsufficientCredit:
    'The provider account has insufficient credit or quota. Top it up and try again.',
  connectionTestModelNotFound: 'Model not found. Check the model ID.',
  connectionTestAPITypeMismatch:
    'This endpoint does not appear to support the selected API type. Try Completions or Responses.',
  connectionTestBrowserNetworkFailed:
    'Could not reach this endpoint from the browser. Try the desktop app or use an endpoint with CORS enabled.',
  connectionTestNetworkFailed:
    'Could not reach the endpoint. Check the URL and your network connection.',
  connectionTestUnknownFailed: 'Connection test failed. Check the provider settings and try again.',
  getProviderAPIKey: params('Get an {provider} API key →'),
  oneKeyManyModels: 'One key for 100+ models from all providers.',
  describeChange: 'Describe a change…',
  describeCreateOrChange: 'Describe what you want to create or change.',
  stopGenerating: 'Stop generating',
  sendMessage: 'Send message',
  attachImages: 'Attach images',
  removeImageAttachment: params('Remove image {name}'),
  dropImagesToAttach: 'Drop images to attach',
  queueMessage: 'Steer the agent… Alt+Enter waits until it is done',
  queuedSteer: 'Sends after the current step',
  queuedFollowUp: 'Sends when the agent is done',
  removeQueuedMessage: 'Remove waiting message',
  dropImagesAfterReply: 'Attach images after the reply',
  dropImagesLimit: params('Up to {count} images per message'),
  viewAttachment: params('View attachment {name}'),
  attachmentPreview: 'Attachment preview',
  closeAttachmentPreview: 'Close attachment preview',
  mentionSelection: 'Mention the selected layers',
  thinking: 'Thinking…',
  reasoning: 'Reasoning',
  thoughtFor: params('Thought for {seconds}s'),
  copyResponse: 'Copy response',
  revertTurn: 'Revert changes',
  turnReverted: 'Changes reverted',
  turnPartlyUndone: params('{undone} of {total} changes undone'),
  turnStopped: 'Stopped',
  restoreTurn: 'Restore changes',
  regenerate: 'Regenerate',
  revertAndRegenerate: 'Revert and regenerate',
  retryRequest: 'Retry',
  editMessage: 'Edit message',
  cancelEdit: 'Cancel',
  resendMessage: 'Send again',
  responseCopied: 'Response copied',
  toolFinished: 'Done',
  toolUndone: 'Undone',
  toolRunning: 'Running…',
  toolError: 'Error',
  toolInput: 'Input',
  toolOutput: 'Output',
  toolDetails: 'Tool call details',
  toolSteps: params('Earlier steps: {count}'),
  toolStepsFailed: params('failed: {count}'),
  showNodeOnCanvas: params('Show {name} on canvas'),
  toolChanges: 'Changes',
  changeHighlight: 'Highlight',
  changeBefore: 'Before',
  changeAfter: 'After',
  changeSplit: 'Before and after split',
  changeStructure: 'Structure changes',
  changedPixels: params('{percent}% of pixels changed'),
  noVisibleChange: 'No visible change',
  changePreview: 'Change previews',
  changePreviewHint:
    'Before and after images kept with each AI edit in the chat history. Larger previews take more storage.',
  changePreviewOff: 'Off, structure only',
  changePreviewSmall: 'Small (240 px)',
  changePreviewMedium: 'Medium (480 px)',
  changePreviewLarge: 'Large (960 px)',
  unknownTool: 'Unknown tool',
  permissionRequestTitle: 'Permission request',
  permissionRequest: params('{tool} is requesting permission.'),
  baseURLPlaceholder: 'Base URL (e.g. http://localhost:11434/v1)',
  modelIDPlaceholder: 'Model ID (e.g. llama-3.3-70b)',
  provider: 'AI Provider',
  providerSettings: 'Provider settings',
  openProviderSettings: 'Open provider settings',
  modelsTitle: 'Models',
  modelsDescription: 'Configure reusable models and their provider connections.',
  addModel: 'Add model',
  editModel: 'Edit model',
  modelName: 'Name',
  modelConfiguration: 'Model',
  connectionSettings: 'Connection',
  modelCapabilities: 'Capabilities',
  modelCapabilitiesDetected: 'Detected from the selected model.',
  modelCapabilitiesManual: 'Declare compatibility for this custom model.',
  modelCapabilityTools: 'Tool calling',
  modelCapabilityVision: 'Image input',
  modelCapabilityToolsShort: 'Tools',
  modelCapabilityVisionShort: 'Vision',
  selectDesignModel: 'Select design model',
  modelNeedsCredential: 'Needs key',
  modelAgentConnection: 'Agent',
  modelConnectionChecking: 'Checking…',
  modelNotInstalled: 'Not installed',
  modelInstalled: 'Installed',
  modelSignedOut: 'Signed out',
  modelToolsUnreachable: 'Tools unreachable',
  thinkingLevel: 'Thinking level',
  thinkingLevelDescription:
    'How much the model reasons before answering. You can change it for each message in the chat.',
  thinkingDefault: 'Default',
  thinkingOff: 'Off',
  thinkingMinimal: 'Minimal',
  thinkingLow: 'Low',
  thinkingMedium: 'Medium',
  thinkingHigh: 'High',
  thinkingExtraHigh: 'Extra high',
  harnessToolPermissions: 'Tool permissions',
  harnessPermissionReads: 'Ask before edits and commands',
  harnessPermissionEdits: 'Ask before commands',
  harnessPermissionAll: 'Allow all tools',
  saveModel: 'Save model',
  deleteModel: 'Delete model',
  deleteModelDescription: 'Delete this model and remove its role assignments?',
  manageModelsAndRoles: 'Manage models and roles…',
  modelAssignments: 'Assignments',
  modelAssignmentsDescription: 'Choose which configured model handles each type of work.',
  modelRoleDesign: 'Design agent',
  modelRoleReview: 'Review',
  modelRoleFast: 'Fast tasks',
  modelRoleVision: 'Vision',
  modelRoleDesignDescription: 'AI chat and canvas edits',
  modelRoleReviewDescription: 'Explicit plan and design reviews',
  modelRoleFastDescription: 'Low-cost background work',
  modelRoleVisionDescription: 'Screenshots and image references',
  modelRoleUseDesign: 'Same as Design',
  noModel: 'None',
  apiKey: 'API Key',
  apiType: 'API Type',
  baseURL: 'Base URL',
  modelID: 'Model ID',
  selectModel: 'Select a model',
  searchModels: 'Search models…',
  recommendedModels: 'Recommended',
  latestModels: 'Latest',
  allModels: 'All models',
  latest: 'Latest',
  customModelID: 'Custom model ID',
  customModel: 'Custom model…',
  customModelGroup: 'Custom model',
  outputLimit: 'Output limit',
  outputLimitAutomatic: 'Automatic recommendation',
  maxOutputTokens: 'Max output tokens',
  chatAuthenticationFailed: 'Your provider API key is invalid or expired. Replace it in Settings.',
  chatSignInExpired: 'Your sign-in has expired. Sign in again in Settings.',
  chatPlanForbidden: 'Your plan can’t use the selected model. Choose another model in Settings.',
  chatForbidden: 'This API key cannot use the selected model. Check its model access.',
  chatInsufficientCredit:
    'The provider account has insufficient credit or quota. Top it up and try again.',
  chatOutputLimit:
    'The model ran out of output tokens while reasoning. Raise Max output tokens or lower reasoning effort.',
  chatModelNotFound: 'The selected model is unavailable. Choose another model in Settings.',
  chatNetworkFailed: 'OpenPencil could not reach the provider. Check your connection and endpoint.',
  chatRateLimited: 'The provider rate limit was reached. Wait a moment and try again.',
  chatRequestFailed: 'The model request failed. Check the provider settings and try again.',
  chatAgentNotInstalled:
    'The coding agent is not installed. Install it in Settings, then try again.',
  openProviderSettingsAction: 'Open settings',
  cloudWorkspace: 'Workspace',
  cloudWorkspaceHint: 'The workspace whose plan pays for these requests.',
  cloudAIUnavailable: 'Sign in to an OpenPencil Cloud server that offers AI to use these models.',
  cloudAINoWorkspace: 'None of your workspaces on this server includes AI.',
  cloudAICatalogFailed:
    'OpenPencil Cloud could not list its models. Check your connection and try again.',
  cloudAIWorkspacesFailed:
    'OpenPencil Cloud could not check which of your workspaces include AI. Check your connection and try again.',
  chatCloudCreditsExhausted:
    'This workspace has used this month’s AI credits. Manage its plan to add more.',
  chatCloudAllowanceUsed:
    'This workspace has used this month’s AI allowance. Ask your Cloud administrator to raise it.',
  chatCloudAllowanceUsedUntil: params(
    'This workspace has used this month’s AI allowance. It renews on {date}. Ask your Cloud administrator to raise it sooner.'
  ),
  connectionTestCloudCreditsExhausted: 'This workspace has no AI credits left this month.',
  cloudCreditsLeft: params('{credits} credits left'),
  cloudCreditsRenew: params('Renews {date}'),
  manageCloudPlanAction: 'Manage plan',
  chatCloudUnavailable:
    'OpenPencil Cloud AI is unavailable. Sign in to OpenPencil Cloud and choose a workspace in Settings.',
  visionModelUnavailable: 'Choose a Vision model in Settings before attaching images.',
  chatPiCompanionMissing: 'Pi needs the Harness companion. Run guided setup to install it.',
  chatPiCompanionOutdated:
    'The Harness companion doesn’t match this version of OpenPencil. Run guided setup to update it.',
  chatMCPOutdated:
    'OpenPencil’s MCP server doesn’t match this version of OpenPencil. Run guided setup to update it.',
  chatPiSignIn:
    'Pi isn’t signed in to a provider. Run pi in a terminal and type /login, or add an AI Gateway key.',
  chatPiModel:
    'Pi has no model to use. Run pi in a terminal and type /model, or choose one in Settings.',
  completions: 'Completions',
  responses: 'Responses',
  aiSetupWelcomeTitle: 'Welcome to OpenPencil',
  aiSetupWelcomeDescription:
    'Create and edit designs on an open canvas. Import Figma files and make them your own.',
  aiSetupWelcomeAITitle: 'Design with AI',
  aiSetupWelcomeAIDescription:
    'Connect the AI you already use to edit the canvas and review designs. You can change it later in Settings.',
  aiSetupWelcomeTourTitle: 'Take the tour',
  aiSetupWelcomeTourDescription:
    'A short file that walks through components and slots, working controls, modes, shaders, code, and lint, with a card on each that says what to try.',
  aiSetupTakeTour: 'Open the tour',
  aiSetupStart: 'Set up AI',
  aiSetupSkip: 'Start designing',
  aiSetupProgress: params('Step {current} of {total}'),
  aiSetupAdvanced: 'Advanced settings',
  aiSetupContinue: 'Continue',
  aiSetupGoalsTitle: 'What should AI help with?',
  aiSetupGoalDesign: 'Create and edit designs',
  aiSetupGoalDesignDescription: 'Describe a change and let AI edit the canvas.',
  aiSetupGoalVision: 'Review designs visually',
  aiSetupGoalVisionDescription:
    'Let AI look at your designs to check spacing, alignment, and hierarchy.',
  aiSetupAccessTitle: 'What do you already use?',
  aiSetupAccessDescription: 'Select everything you have. If you have nothing yet, continue.',
  aiSetupAccessAgents: 'Coding agents on this computer',
  aiSetupAccessAgentsDescription:
    'Use your existing subscription. The agent chooses its own model.',
  aiSetupAccessAgentsDesktop: 'Coding agents are available in the OpenPencil desktop app.',
  modelProviderSetUp: 'Set up',
  aiSetupAccessAPI: 'API accounts',
  aiSetupAccessServer: 'Local model or company server',
  aiSetupAccessMore: 'More providers',
  providerGroupAgents: 'Your agents',
  providerGroupProviders: 'Providers',
  aiSetupServerOther: 'Other server',
  aiSetupAccessServerDescription:
    'Any server that speaks the OpenAI API, such as Ollama or LM Studio.',
  aiSetupConnectTitle: 'Connect your AI',
  aiSetupNothingDescription: 'Go back to choose other access, or set up AI in advanced settings.',
  aiSetupAgentDescription: params(
    'OpenPencil starts {agent} when you send a message, with the account {agent} is signed in to.'
  ),
  aiSetupAgentInstall: 'If it is not installed yet, run:',
  aiSetupAgentInstallSupported: 'Install the supported adapter:',
  aiSetupAgentChecking: 'Checking this computer…',
  aiSetupAgentInstalled: 'installed',
  aiSetupAgentNotFound: 'not found',
  aiSetupAgentMCP: 'OpenPencil MCP server',
  aiSetupAgentMCPInstall:
    'Coding agents reach the canvas through OpenPencil’s MCP server. Install it with:',
  aiSetupAgentPromptHint: params(
    'Already using {agent} or another coding agent? Copy the setup prompt and paste it there; it installs what OpenPencil needs.'
  ),
  aiSetupAgentNeedsAdapter: 'installed · OpenPencil adapter missing',
  aiSetupAgentInstallAdapter: 'Install adapter',
  aiSetupAgentInstallMCP: 'Install MCP server',
  aiSetupAgentUpdateMCP: 'Update MCP server',
  aiSetupAgentOutdated: 'update needed',
  aiSetupAgentInstalling: 'Installing…',
  aiSetupAgentGetCLI: params('Install {agent}'),
  aiSetupAgentNeedsNpm:
    'Installing needs npm, which comes with Node.js. Install Node.js, then check again.',
  aiSetupAgentNeedsAdmin:
    'Installing needs administrator rights, because npm keeps global packages in a protected folder. Run the command below in a terminal, or let your agent set up a folder you own.',
  aiSetupAgentInstallFailed:
    'The installation didn’t finish. Check your connection, or run the command yourself.',
  aiSetupAgentMCPStartFailed:
    'The MCP server is installed but didn’t start. Restart OpenPencil, then check again.',
  aiSetupAgentLookupFailed: 'Couldn’t check this computer. Try again.',
  aiSetupAgentCopyPrompt: 'Copy setup prompt',
  aiSetupAgentCheckAgain: 'Check again',
  aiSetupAgentInstallRuns: params('Installing runs {command}.'),
  aiSetupDetectNotFound: 'Not found on this computer',
  aiSetupDetectFound: 'Found on this computer',
  aiSetupDetectSignedOut: 'Found · not signed in',
  aiSetupDetectSignedIn: 'Signed in',
  aiSetupDetectSignedInAs: params('Signed in · {account}'),
  aiSetupAgentAccount: 'Account',
  aiSetupAgentAccountChecking: 'checking…',
  aiSetupAgentAccountUnknown: 'couldn’t check',
  aiSetupAgentNotSignedIn: 'not signed in',
  aiSetupAgentSigningIn: 'signing in…',
  aiSetupAgentSignIn: 'Sign in',
  aiSetupAgentSignInBrowser: 'Finish signing in in your browser.',
  aiSetupAgentSignInOpenPage: 'Open the sign-in page',
  aiSetupAgentSignInCode: 'Code from the sign-in page, if it shows one',
  aiSetupAgentSignInSubmitCode: 'Submit code',
  aiSetupAgentSignInFailed: params('Couldn’t sign in to {agent}. Try again.'),
  aiSetupAgentTools: 'OpenPencil tools',
  aiSetupAgentToolsConnected: 'connected',
  aiSetupAgentToolsUnreachable: 'not reachable',
  aiSetupAgentToolsFailed: params(
    '{agent} can’t reach OpenPencil’s tools, so chats with it won’t start.'
  ),
  aiSetupAgentToolsHint:
    'Check that OpenPencil’s MCP server is running in Settings → MCP, then press Check again.',
  aiSetupAgentAdapterMismatch: params(
    'OpenPencil found {path}, another adapter it doesn’t support. Install the supported one, then remove this one or move it later on your PATH.'
  ),
  aiSetupPiDescription:
    'OpenPencil runs Pi through its Harness companion and uses the providers you signed in to in Pi.',
  aiSetupPiCompanion: 'Harness companion',
  aiSetupPiInstallCompanion: 'Install companion',
  aiSetupPiUpdateCompanion: 'Update companion',
  aiSetupPiModel: params('Pi’s default model: {model}'),
  aiSetupPiNoModel: 'No default model set in Pi',
  piModelHint: 'A Pi model such as provider/model. Leave empty to use Pi’s default model.',
  aiSetupPiSignIn:
    'To sign in to a provider or pick a default model, run pi in a terminal and type /login or /model.',
  aiSetupGetDesktop: 'Get the desktop app',
  aiSetupMeteredNote:
    'OpenRouter gives you models from several vendors with one account and one key.',
  aiSetupSkillsTitle: 'Skills from your coding agents',
  aiSetupSkillsDescription:
    'The design chat can use skills your coding agents installed. Most are coding workflows, so pick only the ones that help with design; Settings › Skills changes them later.',
  aiSetupReviewTitle: 'Review your setup',
  aiSetupAgentModel: 'Model chosen by the agent',
  aiSetupFinish: 'Finish setup',
  aiSetupSavedTitle: 'AI is ready',
  aiSetupSavedDescription: 'You can change models and roles anytime in Settings.',
  aiSetupRun: 'Run guided setup',
  aiSetupServerKeyHint: 'If your server does not check keys, enter any value.',
  aiSetupGapDesign: 'Nothing you selected can create and edit designs.',
  aiSetupGapVision: 'Nothing you selected can review images, so visual review would stay off.',
  aiSetupGapContinue: 'You can continue without it and add it later in Settings.',
  aiSetupGapAddOpenRouter: 'Add OpenRouter (pay as you go)',
  aiSetupGapRemoveOpenRouter: 'Don’t use OpenRouter',
  aiSetupGapCoveredByOpenRouter:
    'OpenRouter will cover what your other choices can’t, billed per request.',
  aiSetupServerVision: 'This model can read images',
  aiSetupSavedKeyHint: 'Leave blank to keep the saved key.',
  aiSetupAlreadyConnected: 'Everything you selected is already connected.',
  aiSetupOpenRouterSignIn: 'Sign in with OpenRouter',
  aiSetupOpenRouterWaiting: 'Finish signing in to OpenRouter in your browser.',
  aiSetupSignInReopen: 'Open again',
  aiSetupOpenRouterOrKey: 'Or paste an API key',
  aiSetupOpenRouterBlocked:
    'Your browser blocked the sign-in window. Allow pop-ups for OpenPencil and try again.',
  aiSetupSignInCancelled: 'Sign-in was cancelled.',
  aiSetupSignInExpired: 'Sign-in took too long. Try again.',
  aiSetupOpenRouterFailed: 'Couldn’t sign in to OpenRouter. Try again or paste an API key.',
  aiSetupOpenRouterSignedInTitle: 'Signed in to OpenRouter',
  aiSetupOpenRouterKeyLabel: params('· key “{label}”'),
  aiSetupOpenRouterVerifying: 'Checking your OpenRouter key…',
  aiSetupOpenRouterNoCredits:
    'This OpenRouter account has no credits yet. Add credits on OpenRouter to use paid models such as the recommended one.',
  aiSetupSignInChange: 'Use a different account',
  aiSetupSignOut: 'Sign out',
  aiSetupAccessSubscriptions: 'Subscriptions',
  aiSetupAccessChatGPT: 'Use your ChatGPT plan’s models in OpenPencil’s own agent.',
  aiSetupChatGPTSignIn: 'Sign in with ChatGPT',
  aiSetupChatGPTWaiting: 'Finish signing in to ChatGPT in your browser.',
  aiSetupChatGPTSignedInTitle: 'Signed in to ChatGPT',
  aiSetupChatGPTFailed: 'Couldn’t sign in to ChatGPT. Try again.',
  aiSetupChatGPTPortInUse:
    'Another sign-in, such as `codex login`, is using port 1455. Finish or close it, then try again.',
  aiSetupChatGPTCallbackSignedIn:
    'Signed in to ChatGPT. You can close this tab and return to OpenPencil.',
  aiSetupChatGPTCallbackCancelled: 'ChatGPT sign-in was cancelled. You can close this tab.',
  aiSetupChatGPTCallbackStale:
    'This sign-in link belongs to an earlier attempt. Start again from OpenPencil.',
  aiSetupChatGPTUsage: 'Replies count toward your ChatGPT plan’s usage limits.',
  aiSetupSavedSignInHint: 'Your saved sign-in will be used.',
  aiSetupUseRecommended: 'Use recommended setup',
  aiSetupRolesDescription:
    'Choose a model for each kind of work. We picked recommended ones from what you connected; anything else you configured stays as it is.',
  chatReferenceLayers: 'Layers',
  chatReferencePages: 'Pages',
  chatReferenceSkills: 'Skills',
  chatReferenceCommands: 'Commands',
  openSkillSettings: params('Open skill “{name}”'),
  skillsDescription:
    'Instructions the AI chat loads when a request matches their description. Upload a ZIP of a skill’s folder or a SKILL.md, or use the skills your coding agents installed.',
  skillsEnabledCount: params('{enabled} of {total} enabled'),
  searchSkills: 'Search skills',
  noMatchingSkills: 'No skills match your search.',
  skillsUpload: 'Upload skill',
  skillsUploadedSource: 'Uploaded',
  skillsProjectSource: 'Next to this document',
  skillsTrustFolder: 'Trust folder',
  skillsStopTrusting: 'Stop trusting',
  skillsTrustTitle: 'Trust this folder?',
  skillsTrustDescription: params(
    'Skills in {folder} give the AI chat instructions it follows. Trust a folder only if you know where its skills come from.'
  ),
  skillsFolderUntrusted: 'Trust its folder to use this skill.',
  skillsAgentsSource: 'Shared agent skills',
  skillsClaudeSource: 'Claude Code skills',
  skillsNoUploads: 'No uploaded skills yet.',
  skillsNoneInFolder: 'No skills in this folder.',
  skillsProblems: 'Some folders could not be read as skills',
  skillsUploadFailed: 'Could not upload the skill',
  skillsUploadTooLarge: 'The file is larger than 10 MB.',
  skillsUploadNoSkill: 'The archive has no SKILL.md.',
  skillsUploadSeveral: 'The archive holds more than one skill. Upload them one at a time.',
  skillsUploadUnreadable: 'Choose a ZIP archive or a SKILL.md text file.',
  skillsDelete: 'Delete skill',
  skillsDeleteDescription: params('“{name}” will be removed from OpenPencil.'),
  skillsLocation: 'Location',
  skillsFiles: 'Files',
  skillsInstructions: 'Instructions',
  skillsWarnings: 'This skill departs from the Agent Skills specification',
  skillsUse: 'Use this skill',
  skillsUseDescription: 'The AI chat lists it and loads its instructions when a request matches.',
  skillsSourceOff: 'Skills from this folder are turned off.',
  skillsNotUsed: 'Not used',
  skillsNotTrusted: 'Not trusted',
  skillsShadowed: 'A skill with the same name from a source above is used instead.',
  skillWarningPlainFrontmatter:
    'The frontmatter is not valid YAML, so it was read line by line. Quote values that contain “: ”.',
  skillWarningNameFromFolder: 'The frontmatter has no name, so the folder name is used.',
  skillWarningLongName: params('The name is longer than {max} characters.'),
  skillWarningNameFormat: 'The name should use only lowercase letters, digits, and single hyphens.',
  skillWarningNameMismatch: 'The name does not match the folder name.',
  skillWarningLongDescription: params('The description is longer than {max} characters.'),
  skillErrorNoFrontmatter: 'SKILL.md does not start with YAML frontmatter between --- lines.',
  skillErrorInvalidFrontmatter: params('The SKILL.md frontmatter is invalid: {detail}'),
  contextUsed: params('Context: {percent}% used'),
  contextTitle: 'Context',
  contextTokens: params('{used} of {total} tokens'),
  contextCompactsAt: params(
    'Compacts automatically at {tokens} tokens, keeping room for the reply.'
  ),
  contextCompactsOff: 'Automatic compaction is off.',
  contextNearlyFull: params('Context {percent}% used'),
  compact: 'Compact',
  compactCommand: 'Summarize the conversation so far; text after it says what to keep',
  compactAutomatically: 'Compact automatically',
  compactAutomaticallyHint: 'Summarizes older messages when the context window fills up.',
  compacting: 'Compacting the conversation…',
  compactionFailed: 'The conversation could not be compacted. Nothing was changed.',
  compactAndRetry: 'Compact and retry',
  chatContextLimit: 'The conversation is longer than the model can read.',
  conversationCompacted: 'Conversation compacted',
  compactionKeepsMessages:
    'The model now gets this summary instead of the messages above; you still see them.',
  agentCompactionKeepsMessages:
    'The agent now works from its own summary of the messages above; you still see them.',
  compactionTokens: params('{before} → {after} tokens'),
  tokenUsage: 'Token usage',
  tokenUsageHint: "Shows each reply's tokens.",
  tokenUsageHover: 'On hover',
  tokenUsageAlways: 'Always',
  tokenUsageHidden: 'Hidden',
  replyTokens: params('{input} in · {output} out'),
  replyCachedTokens: params('{cached} cached'),
  skillErrorNoDescription: 'The SKILL.md frontmatter has no description.',
  skillErrorNoName: 'The SKILL.md frontmatter has no name.'
} as const

export const aiMessages = i18n('ai', aiMessageDefaults)