// Code Generation Module - English Translation
export default {
  // Page Title
  title: 'Code Generation',

  // Search Form
  search: {
    dataSource: 'Data Source',
    dataSourcePlaceholder: 'Please select/enter data source name',
    all: 'All',
    tableName: 'Table Name',
    tableNamePlaceholder: 'Please enter table name',
    tableComment: 'Table Comment',
    tableCommentPlaceholder: 'Please enter table comment',
    createTime: 'Create Time',
    startDate: 'Start Date',
    endDate: 'End Date',
    search: 'Search',
    reset: 'Reset'
  },

  // Buttons
  button: {
    generate: 'Generate',
    import: 'Import',
    edit: 'Edit',
    delete: 'Delete',
    preview: 'Preview',
    sync: 'Sync',
    generateCode: 'Generate Code',
    confirm: 'Confirm',
    cancel: 'Cancel'
  },

  // Table Columns
  table: {
    index: 'No.',
    dataSource: 'Data Source',
    tableName: 'Table Name',
    tableComment: 'Table Comment',
    entity: 'Entity',
    createTime: 'Create Time',
    updateTime: 'Update Time',
    operation: 'Actions'
  },

  // Tooltip
  tooltip: {
    preview: 'Preview',
    edit: 'Edit',
    delete: 'Delete',
    sync: 'Sync',
    generateCode: 'Generate Code'
  },

  // Dialog
  dialog: {
    previewTitle: 'Code Preview',
    importTitle: 'Import Table',
    copy: 'Copy'
  },

  // Messages
  message: {
    selectData: 'Please select the data to generate',
    generateSuccess: 'Successfully generated to custom path: ',
    syncConfirm: 'Are you sure to force sync "{tableName}" table structure?',
    syncSuccess: 'Sync successful',
    deleteConfirm: 'Are you sure to delete the data item with table ID "{tableIds}"?',
    deleteSuccess: 'Delete successful',
    copySuccess: 'Copy successful',
    selectTable: 'Please select the table to import',
    validationFailed: 'Form validation failed, please check and resubmit'
  },

  // Edit Page
  edit: {
    // Tabs
    tabs: {
      basic: 'Basic Info',
      column: 'Column Info',
      genInfo: 'Generation Info'
    },
    // Basic Info Form
    basic: {
      tableName: 'Table Name',
      tableNamePlaceholder: 'Please enter table name',
      tableComment: 'Table Comment',
      tableCommentPlaceholder: 'Please enter table comment',
      className: 'Entity Class Name',
      classNamePlaceholder: 'Please enter entity class name',
      functionAuthor: 'Author',
      functionAuthorPlaceholder: 'Please enter author',
      remark: 'Remark',
      tableNameRequired: 'Please enter table name',
      tableCommentRequired: 'Please enter table comment',
      classNameRequired: 'Please enter entity class name',
      functionAuthorRequired: 'Please enter author'
    },
    // Column Info Table
    column: {
      index: 'No.',
      columnName: 'Column Name',
      columnComment: 'Column Comment',
      columnType: 'Physical Type',
      javaType: 'Java Type',
      javaField: 'Java Field',
      isInsert: 'Insert',
      isEdit: 'Edit',
      isList: 'List',
      isQuery: 'Query',
      queryType: 'Query Type',
      isRequired: 'Required',
      htmlType: 'Display Type',
      dictType: 'Dict Type',
      dictTypePlaceholder: 'Please select'
    },
    // HTML Type Options
    htmlType: {
      input: 'Input',
      textarea: 'Textarea',
      select: 'Select',
      radio: 'Radio',
      checkbox: 'Checkbox',
      datetime: 'Datetime',
      imageUpload: 'Image Upload',
      fileUpload: 'File Upload',
      editor: 'Rich Text Editor'
    },
    // Generation Info Form
    genInfo: {
      tplCategory: 'Generation Template',
      tplCategoryCrud: 'Single Table (CRUD)',
      tplCategoryTree: 'Tree Table (CRUD)',
      packageName: 'Package Path',
      packageNameTip: 'Which java package to generate, e.g. com.ruoyi.system',
      moduleName: 'Module Name',
      moduleNameTip: 'Can be understood as subsystem name, e.g. system',
      businessName: 'Business Name',
      businessNameTip: 'Can be understood as function English name, e.g. user',
      functionName: 'Function Name',
      functionNameTip: 'Used as class description, e.g. User',
      parentMenu: 'Parent Menu',
      parentMenuTip: 'Assign to specified menu, e.g. System Management',
      parentMenuPlaceholder: 'Select parent menu',
      genType: 'Generation Method',
      genTypeTip: 'Default is zip download, custom path is also available',
      genTypeZip: 'Zip Package',
      genTypeCustom: 'Custom Path',
      genPath: 'Custom Path',
      genPathTip: 'Fill in disk absolute path, if not filled, generate to current Web project',
      recentPath: 'Recent Path Quick Select',
      restorePath: 'Restore default generation base path',
      otherInfo: 'Other Info',
      treeCode: 'Tree Code Field',
      treeCodeTip: 'Tree display code field name, e.g.: dept_id',
      treeCodePlaceholder: 'Please select',
      treeParentCode: 'Tree Parent Code Field',
      treeParentCodeTip: 'Tree display parent code field name, e.g.: parent_Id',
      treeName: 'Tree Name Field',
      treeNameTip: 'Tree node display name field name, e.g.: dept_name',
      subInfo: 'Association Info',
      subTableName: 'Associated Sub-table Name',
      subTableNameTip: 'Associated sub-table name, e.g.: sys_user',
      subTableNamePlaceholder: 'Please select',
      subTableFkName: 'Sub-table Foreign Key Name',
      subTableFkNameTip: 'Sub-table foreign key name, e.g.: user_id',
      tplCategoryRequired: 'Please select generation template',
      packageNameRequired: 'Please enter package path',
      moduleNameRequired: 'Please enter module name',
      businessNameRequired: 'Please enter business name',
      functionNameRequired: 'Please enter function name'
    },
    // Buttons
    button: {
      submit: 'Submit',
      return: 'Return'
    }
  }
};
