import type { WorkpulseLocaleMessages } from "./id";
import { enPages } from "./pages-en";

export const en: WorkpulseLocaleMessages = {
  nav: {
    dashboard: "Dashboard",
    report: "Daily Report",
    calendar: "Calendar",
    team: "Team Monitoring",
    employees: "Employees",
    analytics: "Analytics",
    notifications: "Notifications",
    chat: "Chat",
    profile: "Profile",
    settings: "Settings",
    logout: "Logout",
    brandTagline: "Internal Reporting Hub",
    mobileHome: "Home",
    mobileReport: "Report",
    mobileTeam: "Team"
  },
  topbar: {
    searchPlaceholder: "Search employee, report, division…",
    notifications: "Notifications",
    lightMode: "Light mode",
    darkMode: "Dark mode",
    language: "Language",
    myProfile: "My profile"
  },
  common: {
    loading: "Loading…",
    loadingProfile: "Loading profile…",
    loadingMembers: "Loading members…",
    loadingBoard: "Loading task board…",
    saving: "Saving…",
    save: "Save",
    cancel: "Cancel",
    confirmDelete: "Yes, delete",
    close: "Close",
    active: "Active",
    inactive: "Inactive",
    name: "Name",
    email: "Email",
    actions: "Actions",
    period: "Period",
    reports: "Reports",
    statusDraft: "Draft",
    statusSubmitted: "Submitted",
    empty: "Empty",
    allTime: "All time",
    days7: "7 days",
    days30: "30 days",
    days90: "90 days",
    refreshHint: "The list refreshes periodically. To see the latest changes, wait a moment or refresh the page."
  },
  settings: {
    title: "Settings",
    subtitle: "Manage profile, security, notifications, and workspace preferences.",
    saveProfile: "Save profile",
    savePreferences: "Save preferences",
    saving: "Saving…",
    profileSaved: "Profile saved.",
    preferencesSaved: "Preferences saved.",
    sections: {
      profile: "Profile",
      security: "Security",
      preferences: "Preferences",
      activity: "Activity log",
      workspace: "Workspace"
    },
    theme: "Theme",
    language: "Language",
    themeLight: "Light",
    themeDark: "Dark",
    langId: "Bahasa Indonesia",
    langEn: "English",
    prefsHint: "Theme applies after save. Use the globe icon in the top bar to switch language quickly."
  },
  team: {
    title: "Team monitoring",
    subtitleSuperadmin:
      "Division overview from organization reports — click a division to see reporters; click the Reports count to open the kanban board in this window without leaving the page.",
    subtitleUser: "Teams you belong to and their members — this view uses live WorkPulse data.",
    searchPlaceholder: "Search name or email…",
    aboutDivisionTitle: "About divisions",
    aboutDivisionBody:
      "Divisions here follow the division selected on submitted daily reports. There is no “add division” button here yet; new division names appear automatically after a report uses that division. Standalone division management (without reports) is planned — see also the Employees page.",
    emptyDivisionTitle: "No divisions for this period",
    emptyDivisionBody:
      "Make sure a division is selected when submitting on Daily Report. After reports arrive, division summaries will appear here.",
    openDailyReport: "Open Daily Report",
    tryPeriodAll: "Try period: all time",
    tryPeriod90: "Try period: 90 days",
    emptyDivisionTip:
      "Tip: use consistent division naming (avoid mixing letter case for the same division) so summaries are not split across rows.",
    noDivisionMatch: "No division matches your search.",
    reportCount: "{count} report(s) (period {period})",
    accountStatus: "Account status",
    viewReports: "View reports",
    rowHint: "Click a row or View reports to open the task board.",
    noUsersMatch: "No users match this search filter.",
    noTeams: "You are not assigned to any team yet. Contact an admin to be added.",
    teamRole: "Team role",
    modalTitle: "Report detail & task board",
    modalPeriod: "period",
    selectReportDate: "Select report date",
    reportDivision: "Report division:",
    workHours: "Hours:",
    kanbanTitle: "Task board",
    kanbanSubtitle: "Columns follow the daily report: to do, in progress, done.",
    kanbanTodo: "To do",
    kanbanDoing: "In progress",
    kanbanDone: "Done",
    workDescription: "Work description",
    openFullPage: "Open full page",
    editReport: "Edit report",
    readOnlyNote: " (read-only view). Superadmins can edit via the Edit button.",
    sessionHint: "If team data does not appear, log out and log in once so your role is stored.",
    defaultReportTitle: "Report",
    deleteReport: "Delete report",
    deleteReportConfirmTitle: "Delete report?",
    deleteReportConfirm: "This report and its attachments will be permanently removed. This cannot be undone.",
    deleteReportSuccess: "Report deleted.",
    deleteReportFailed: "Could not delete report.",
    reportNotFound: "This report no longer exists (it may have been deleted).",
    noEvidence: "No screenshots or image attachments on this report."
  },
  calendar: {
    title: "Report calendar",
    subtitle: "Pick a day on the calendar, then click a report in the agenda to view details without leaving this page.",
    week: "Week",
    month: "Month",
    today: "Today",
    prev: "Previous",
    next: "Next",
    team: "Team"
  },
  analytics: {
    title: "Analytics",
    subtitle: "Your report summary and the last 30-day trend. Data refreshes when you open this page.",
    totalReports: "Total reports",
    unreadNotifications: "Unread notifications",
    daysWithReports: "Days with reports (30 days)",
    reportsLast30: "Report count (30 days)",
    chart7Title: "Reports per day (last 7 days)",
    chart7Subtitle: "Number of reports you submitted per date.",
    chart7Empty: "No reports in the last 7 days.",
    volumeTitle: "Volume by period",
    volumeSubtitle: "Total reports per time block in the last 30 days.",
    volumeEmpty: "Not enough data for the bar chart.",
    seriesName: "Reports"
  },
  notifications: {
    title: "Notification center",
    subtitle: "Reminders and messages for your account.",
    settings: "Settings",
    markAllRead: "Mark all as read",
    processing: "Processing…",
    count: "{n} notifications",
    filterAll: "All",
    filterUnread: "Unread",
    filterRead: "Read",
    emptyTab: "No notifications in this tab.",
    selectPrompt: "Tap a row to expand or collapse full details.",
    detailTitle: "Details",
    statusLabel: "Status",
    timeLabel: "Time",
    markRead: "Mark as read",
    alreadyRead: "Already read",
    openRow: "Open"
  },
  report: {
    title: "Daily report submission",
    titleReadOnly: "Daily report (read-only)",
    titleAdminEdit: "Correct report (admin)",
    readOnlySubtitle: "You are viewing another contributor's report. Editing is disabled.",
    adminEditSubtitle: "You are correcting another contributor's report. Changes autosave and are logged in the activity log.",
    adminEditBanner: "Admin correction mode: changes are saved to this report and recorded in the activity log.",
    saveCorrection: "Save changes",
    autosaveSaving: "Saving…",
    autosaveSaved: "Saved {time}",
    autosaveHint: "Changes save automatically while you edit.",
    progress: "· {pct}% complete",
    monitorBanner: "Monitoring mode: report content is view-only.",
    backToTeam: "Back to Team monitoring",
    summary: "Report summary",
    division: "Division",
    divisionPlaceholder: "Select division",
    reportDate: "Report date",
    workStart: "Start",
    workEnd: "End",
    workHoursGroup: "Work hours",
    deleteDraft: "Delete draft",
    deleteDraftConfirmTitle: "Delete draft?",
    deleteDraftConfirm: "This draft will be permanently removed. This cannot be undone.",
    deleteDraftSuccess: "Draft deleted."
  },
  employees: {
    title: "Employees",
    titleLong: "Employees & organization",
    orgLabel: "Organization",
    subtitle:
      "Manage master divisions and members with roles (staff, supervisor, manager). Changes are saved to the WorkPulse server. Open a division card to view or remove members.",
    restrictedBody:
      "This page is for company administrators only. Contact your WorkPulse administrator if you need access.",
    backDashboard: "Back to dashboard",
    teamMonitoring: "Team monitoring",
    searchPlaceholder: "Search division name, code, or description…",
    refreshHint:
      "The list updates periodically. Division cards show official org members. For per-division report analytics use Team monitoring.",
    orgSettingsTitle: "Organization settings",
    orgSettingsBody:
      "Add a new division or assign employees with roles. Need user IDs? See Settings → workspace users.",
    addDivision: "Add division",
    addMember: "Manage staff & roles",
    emptyTitle: "No organization divisions yet",
    emptyBody: "Start with Add division above, or ensure backend migrations have been run on the server."
  },
  dashboard: {
    greetingMorning: "Good morning",
    greetingAfternoon: "Good afternoon",
    greetingEvening: "Good evening",
    pulse:
      "Here is your daily reporting pulse: submission health, team activity, and blockers that need follow-up.",
    viewCalendar: "View team calendar",
    submitReport: "Submit today's report",
    todayStatus: "Today status",
    teamPending: "Pending in team",
    mainBlocker: "Main blocker",
    productivityScore: "Productivity score",
    weeklyReports: "Weekly reports (submitted / total)",
    yourDrafts: "Your drafts (this week)",
    unreadNotifications: "Unread notifications",
    weeklyTrend: "Weekly progress trend",
    weeklyTrendSub: "Your report counts per day (calendar week, Mon–Sun).",
    loadingChart: "Loading chart…",
    noReportsWindow: "No reports in this window yet.",
    focusToday: "Focus today",
    focusSub: "Unread notifications and draft reports (latest first).",
    loading: "Loading…",
    allCaughtUp: "Nothing queued — you're all caught up.",
    openTeam: "Open Team monitoring",
    recentActivity: "Recent activity",
    viewAll: "View all",
    noActivity: "No recent activity.",
    teamSnapshot: "Team snapshot",
    teamThisWeek: "· this week",
    joinTeam: "Join a team to see aggregate draft counts.",
    submittedVsTotal: "Submitted vs total reports (all members, same period as your summary).",
    draftsPending: "{n} draft(s) pending in team",
    quickActions: "Quick actions",
    submitDaily: "Submit daily report",
    reviewTeam: "Review team monitoring",
    openAnalytics: "Open analytics insights",
    todayNoReport: "No report for today yet",
    todayDraft: "Draft — not submitted",
    todaySubmitted: "Submitted",
    teamPendingNone: "— (no team)",
    blockerNone: "No flagged items — check Focus today",
    trendThisWeek: "This week"
  },
  ...enPages
};
