Skip to content

标签

覆盖任意或全部 UI 文案。默认是中文;英文集成方通常整组覆盖。

ts
tool.labels = {
  picker: 'Annotate',
  pickerHint: 'Hover to inspect, click to select',
  compose: 'Feedback',
  targetLabel: 'Target element',
  placeholder: 'Write feedback…',
  send: 'Send',
  sending: 'Sending…',
  reselect: 'Reselect',
  list: 'Notes',
  locate: 'Locate',
  close: 'Close',
  empty: 'No annotations on this page yet.',
  loading: 'Loading…',
  notFound: 'Element not found. The page may have changed.',
  contentPrefix: 'Content:',
  copyAsPrompt: 'Copy as prompt',
  copyHandoff: 'Copy handoff prompt',
  copied: 'Copied',
  resolve: 'Resolve',
  resolved: 'Resolved',
  properties: 'Props',
  propertiesHint: 'Edit values to give the agent exact instructions',
  colorLabel: 'Color',
  fontLabel: 'Font',
  dragLabel: 'Drag to reorder',
  expandLabel: 'Expand to parent',
  shrinkLabel: 'Shrink to child',
  lockedTitle: 'Access token required',
  lockedHint: 'Annotations on this page are protected. Enter the token from your sharing link.',
  lockedPlaceholder: 'Paste token…',
  lockedSubmit: 'Unlock',
  lockedError: 'Token invalid or expired.',
};

只有你设的键会被覆盖,其余保持默认。locked 字段只在开启 requireAuth 时有意义。

MIT Licensed