common.ts 5.59 KB
const translation = {
  api: {
    success: "Success",
  },
  operation: {
    confirm: "Confirm",
    cancel: "Cancel",
    save: "Save",
    edit: "Edit",
    search: "Search",
    download: "Download",
    delete: "Delete",
    settings: "Settings",
    ok: "OK",
    params: "Params",
    audioSourceUnavailable: "AudioSource is unavailable",
    close: "Close",
    copyImage: "Copy Image",
    imageCopied: "Image copied",
    zoomOut: "Zoom Out",
    zoomIn: "Zoom In",
    openInNewTab: "Open in new tab",
  },
  placeholder: {
    input: "Please enter",
    select: "Please select",
  },
  voice: {
    language: {
      zhHans: "Chinese",
      enUS: "English",
    },
  },
  actionMsg: {
    modifiedSuccessfully: "Modified successfully",
    modifiedUnsuccessfully: "Modified unsuccessfully",
  },
  model: {
    params: {
      stop_sequencesPlaceholder: "Enter sequence and press Tab",
    },
  },
  userProfile: {
    settings: "Settings",
  },
  settings: {
    workplaceGroup: "WORKSPACE",
    generalGroup: "GENERAL",
    members: "Members",
    billing: "Billing",
    language: "Language",
    provider: "Model Provider",
    dataSource: "Data Source",
    apiBasedExtension: "API Extension",
  },
  modelProvider: {
    embeddingModel: {
      key: "Embedding Model",
      tip: "Set the default model for document embedding processing of the Knowledge, both retrieval and import of the Knowledge use this Embedding model for vectorization processing. Switching will cause the vector dimension between the imported Knowledge and the question to be inconsistent, resulting in retrieval failure. To avoid retrieval failure, please do not switch this model at will.",
      required: "Embedding Model is required",
    },
  },
  dataSource: {
    notion: {
      selector: {
        pageSelected: "Pages Selected",
        searchPages: "Search pages...",
        noSearchResult: "No search results",
        addPages: "Add pages",
        preview: "PREVIEW",
      },
    },
  },
  apiBasedExtension: {
    selector: {
      title: "API Extension",
    },
  },
  datasetMenus: {
    relatedApp: "linked apps",
  },
  voiceInput: {
    speaking: "Speak now...",
    converting: "Converting to text...",
    notAllow: "microphone not authorized",
  },
  chat: {
    renameConversation: "Rename Conversation",
    conversationName: "Conversation name",
    conversationNamePlaceholder: "Please input conversation name",
    conversationNameCanNotEmpty: "Conversation name required",
    citation: {
      title: "CITATIONS",
      linkToDataset: "Link to Knowledge",
      characters: "Characters:",
      hitCount: "Retrieval count:",
      vectorHash: "Vector hash:",
      hitScore: "Retrieval Score:",
    },
    inputPlaceholder: "请输入要查询的问题,我将为您解答",
    thinking: "Thinking...",
    thought: "Thought",
  },
  promptEditor: {
    placeholder:
      "Write your prompt word here, enter '{' to insert a variable, enter '/' to insert a prompt content block",
    context: {
      item: {
        title: "Context",
        desc: "Insert context template",
      },
      modal: {
        title: "{{num}} Knowledge in Context",
        add: "Add Context ",
        footer: "You can manage contexts in the Context section below.",
      },
    },
    history: {
      item: {
        title: "Conversation History",
        desc: "Insert historical message template",
      },
      modal: {
        title: "EXAMPLE",
        user: "Hello",
        assistant: "Hello! How can I assist you today?",
        edit: "Edit Conversation Role Names",
      },
    },
    variable: {
      item: {
        title: "Variables & External Tools",
        desc: "Insert Variables & External Tools",
      },
      outputToolDisabledItem: {
        title: "Variables",
        desc: "Insert Variables",
      },
      modal: {
        add: "New variable",
        addTool: "New tool",
      },
    },
    query: {
      item: {
        title: "Query",
        desc: "Insert user query template",
      },
    },
    existed: "Already exists in the prompt",
  },
  imageUploader: {
    uploadFromComputer: "Upload from Computer",
    uploadFromComputerReadError: "Image reading failed, please try again.",
    uploadFromComputerUploadError: "Image upload failed, please upload again.",
    uploadFromComputerLimit: "Upload images cannot exceed {{size}} MB",
    pasteImageLink: "Paste image link",
    pasteImageLinkInputPlaceholder: "Paste image link here",
    pasteImageLinkInvalid: "Invalid image link",
    imageUpload: "Image Upload",
  },
  fileUploader: {
    uploadFromComputer: "Local upload",
    pasteFileLink: "Paste file link",
    pasteFileLinkInputPlaceholder: "Enter URL...",
    uploadFromComputerReadError: "File reading failed, please try again.",
    uploadFromComputerUploadError: "File upload failed, please upload again.",
    uploadFromComputerLimit: "Upload {{type}} cannot exceed {{size}}",
    pasteFileLinkInvalid: "Invalid file link",
    fileExtensionNotSupport: "File extension not supported",
  },
  tag: {
    placeholder: "All Tags",
    addNew: "Add new tag",
    noTag: "No tags",
    noTagYet: "No tags yet",
    addTag: "Add tags",
    editTag: "Edit tags",
    manageTags: "Manage Tags",
    selectorPlaceholder: "Type to search or create",
    create: "Create",
    delete: "Delete tag",
    deleteTip: "The tag is being used, delete it?",
    created: "Tag created successfully",
    failed: "Tag creation failed",
  },
  pagination: {
    perPage: "Items per page",
  },
  imageInput: {
    dropImageHere: "Drop your image here, or",
    browse: "browse",
    supportedFormats: "Supports PNG, JPG, JPEG, WEBP and GIF",
  },
};

export default translation;