Skip to content

The agent that grows with you

3.1 KB
Raw Blame
import type { Translations } from './types'

// The in-app browser pane's copy (`preview.web`), composed by en.ts.
export const enPreviewWeb: Translations['preview']['web'] = {
  embeddedPreviewHint: 'Some sites block embedded previews. Open the original page in a browser tab.',
  appFailedToBoot: 'Preview app failed to boot',
  serverNotFound: 'Server not found',
  remoteLoopback:
    'This address points at the machine running your agent, not this one. The browser pane loads pages locally, so a remote dev server needs a port forward or a reachable hostname.',
  failedToLoad: 'Preview failed to load',
  tryAgain: 'Try again',
  restarting: 'Hermes is restarting...',
  askRestart: 'Ask Hermes to restart the server',
  lookingRestart: taskId => `Hermes is looking for a preview server to restart (${taskId})`,
  restartingTitle: 'Restarting preview server',
  restartingMessage: 'Hermes is working in the background. Watch the preview console for progress.',
  startRestartFailed: message => `Could not start server restart: ${message}`,
  restartFailed: 'Server restart failed',
  hideConsole: 'Hide preview console',
  showConsole: 'Show preview console',
  hideDevTools: 'Hide preview DevTools',
  openDevTools: 'Open preview DevTools',
  goBack: 'Back',
  goForward: 'Forward',
  reload: 'Reload page',
  address: 'Address',
  addressPlaceholder: 'Enter address',
  blankPageBody: 'Type an address above to browse, or ask Hermes to open a page.',
  finishedRestarting: message => `Hermes finished restarting the preview server${message ? `: ${message}` : ''}`,
  failedRestarting: message => `Server restart failed: ${message}`,
  unknownError: 'unknown error',
  restartedTitle: 'Preview server restarted',
  reloadingNow: 'Reloading the preview now.',
  restartFailedTitle: 'Preview restart failed',
  restartFailedMessage: 'Hermes could not restart the server.',
  stillWorking:
    'Hermes is still working, but no restart result has arrived yet. The server command may be running in the foreground.',
  workspaceReloading: 'Workspace changed, reloading preview',
  fileChanged: url => `File changed, reloading preview: ${url}`,
  filesChanged: (count, url) => `${count} file changes, reloading preview: ${url}`,
  watchFailed: message => `Could not watch preview file: ${message}`,
  moduleMimeDescription:
    'Module scripts are being served with the wrong MIME type. This usually means a static file server is serving a Vite/React app instead of the project dev server.',
  loadFailedConsole: (code, message) => `Load failed${code ? ` (${code})` : ''}: ${message}`,
  unreachableDescription: 'The preview page could not be reached.',
  openTarget: url => `Open ${url}`,
  fallbackTitle: 'Preview',
  annotate: 'Annotate',
  annotateOn: 'Stop annotating',
  annotateNeedPage: 'Open a page in the in-app browser first.',
  annotateFailed: 'Could not start annotation mode',
  commenting: 'Commenting',
  addComments: count => (count === 1 ? 'Add 1 comment' : `Add ${count} comments`),
  commentPlaceholder: 'Add a comment...',
  commentTitle: n => `Comment ${n}`,
  saveComment: 'Save',
  cancelComment: 'Cancel comment'
}