Pages list and Tiptap editor (ported from babyboo) with image upload on save, the FORM event picker, field errors at their fields, delete confirmation, unsaved-edits guard and a draft preview. The public page /p/<company>/<slug> renders on the server with metadata, sanitize-html, the company's logo and accent, and the sign-up form with UTM tags. Companies get branding; the event lead detail shows the web page and campaign. Labels in English and Chinese. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
827 lines
33 KiB
TypeScript
827 lines
33 KiB
TypeScript
// Built-in English fallback for every UI message code the admin portal
|
||
// references. Last readable resort before the raw code when the Area-A
|
||
// catalog lacks an entry, so the login screen and authenticated shell render
|
||
// correctly in English even before these codes exist in the catalog, or if
|
||
// the upstream is unreachable. Structure mirrors solvway-customer-portal's
|
||
// app/lib/i18n/defaultMessages.ts; the codes themselves are admin-portal-
|
||
// specific since there is no shared upstream MessageSource to mirror for
|
||
// this surface.
|
||
export const DEFAULT_MESSAGES: Record<string, string> = {
|
||
BackOfficeTitle: "Co-Lite",
|
||
BackOfficeMetaTitle: "Co-Lite :: BackOffice",
|
||
BackOfficeSubtitle: "Sign in to manage events, leads and your team.",
|
||
SignedInElsewhere: "You were signed out because your account signed in somewhere else.",
|
||
BackOfficeLabel: "Back office",
|
||
BackOfficePanelTitle: "Everything behind Co-Lite, in one place.",
|
||
BackOfficePanelEvents: "Events and attendees",
|
||
BackOfficePanelLeads: "Leads captured at every event",
|
||
BackOfficePanelFollowUps: "Follow-ups for your sales team",
|
||
Company: "Company",
|
||
AllCompanies: "All companies",
|
||
CompanySuperAdmin: "Super admin (no company)",
|
||
ChooseCompany: "Choose a company.",
|
||
SelectCompany: "Select a company",
|
||
TeamNeedsCompany: "Choose a company to list its team",
|
||
SuperAdminNeedsRole: "A super admin must have the Super admin role.",
|
||
CompanyBlankForSuper: "Leave blank for super admin",
|
||
BO_COMPANIES: "Companies",
|
||
CompAdd: "Add company",
|
||
CompEdit: "Edit company",
|
||
CompNewCode: "New code",
|
||
CompChangeCode: "Change code",
|
||
CompChangeCodeWarning: "Changing the code changes every staff login name of this company and signs them out.",
|
||
CompConfirm: "Confirm",
|
||
CompActive: "Active",
|
||
CompInactive: "Inactive",
|
||
CompNone: "No companies found",
|
||
CompLoadFailed: "Failed to load companies",
|
||
CompSaveFailed: "Failed to save company.",
|
||
CompNameRequired: "Name is required.",
|
||
CompCodeUnchanged: "The new code is the same as the current code.",
|
||
CompCodeRequired: "Code is required.",
|
||
Username: "Username",
|
||
Password: "Password",
|
||
LogIn: "Log in",
|
||
ForgotLink: "Forgot password?",
|
||
ForgotTitle: "Forgot password",
|
||
ForgotIntro: "Enter your username and email and we will send you a temporary password.",
|
||
ForgotSubmit: "Email me a temporary password",
|
||
ForgotRequired: "Username and email are required.",
|
||
ForgotSent: "If the details match an account, we have emailed a temporary password.",
|
||
ForgotBack: "Back to log in",
|
||
Logout: "Logout",
|
||
Code: "Code",
|
||
Description: "Description",
|
||
Area: "Area",
|
||
Save: "Save",
|
||
Action: "Action",
|
||
Status: "Status",
|
||
// Sidebar labels: module.name is a BO_* code resolved via t(name); BO_ROOT is never rendered.
|
||
BO_ROOT: "Co-Lite admin",
|
||
BO_USERS: "Users",
|
||
BO_ROLES: "Roles",
|
||
AllStatuses: "All statuses",
|
||
Confirm: "Confirm",
|
||
Cancel: "Cancel",
|
||
Name: "Name",
|
||
Email: "Email",
|
||
ClearFilters: "Clear filters",
|
||
PagerPrevious: "Previous",
|
||
PagerNext: "Next",
|
||
PagerPageOf: "Page {page} of {pages}",
|
||
PagerRange: "{first}–{last} of {total}",
|
||
PagerEmpty: "0 of 0",
|
||
Filters: "Filters",
|
||
Loading: "Loading…",
|
||
Surname: "Surname",
|
||
Tree: "Tree",
|
||
Matches: "matches",
|
||
Wallet: "Wallet",
|
||
SidebarCollapse: "Collapse sidebar",
|
||
SidebarExpand: "Expand sidebar",
|
||
Warehouse: "Warehouse",
|
||
HeaderOpenMenu: "Open menu",
|
||
HeaderMenu: "Menu",
|
||
HeaderSwitchToLight: "Switch to light theme",
|
||
HeaderSwitchToDark: "Switch to dark theme",
|
||
LocaleSwitcherChange: "Change language",
|
||
SidebarMainNav: "Main",
|
||
SidebarSectionEvents: "Events",
|
||
SidebarSectionLeads: "Leads",
|
||
SidebarSectionAccess: "Access",
|
||
SidebarSectionSystem: "System",
|
||
UiBreadcrumb: "breadcrumb",
|
||
UiMore: "More",
|
||
UiColumns: "Columns",
|
||
UiVisibleColumns: "Visible columns",
|
||
UiNoResults: "No results.",
|
||
UiSortBy: "Sort by",
|
||
UiRetry: "Retry",
|
||
UiLoading: "Loading",
|
||
NotAuthorizedTitle: "Not authorised",
|
||
NotAuthorizedBody: "You do not have access to this page.",
|
||
ShellBackToDashboard: "Back to dashboard",
|
||
NotFoundTitle: "Page not found",
|
||
NotFoundBody: "That route does not exist in the back office.",
|
||
LayoutMetaDescription: "Co-Lite admin back office",
|
||
LoginInvalidCredentials: "Invalid username or password",
|
||
LoginAccountLocked: "Too many failed sign-ins. Try again later or ask an administrator to unlock your account.",
|
||
PwdChangeMenu: "Change password",
|
||
PwdCurrent: "Current password",
|
||
PwdNew: "New password",
|
||
PwdChangeRequired: "Fill in all the password fields.",
|
||
PwdChanged: "Your password has been changed.",
|
||
LoginHidePassword: "Hide password",
|
||
LoginShowPassword: "Show password",
|
||
ResetAllRequired: "All fields are required.",
|
||
ResetMismatch: "New passwords do not match.",
|
||
ResetFailed: "Could not set the password.",
|
||
ResetTitle: "Set your password",
|
||
ResetChooseIntro: "Choose a new password to continue.",
|
||
ResetNewPassword: "New password",
|
||
ResetConfirmPassword: "Confirm new password",
|
||
ResetSubmit: "Set password",
|
||
ModulesParent: "Parent",
|
||
DashWelcome: "Welcome, {name}",
|
||
DashWelcomeFallbackName: "admin",
|
||
DashLeadFunnelLabel: "Lead funnel",
|
||
DashThisMonth: "This month",
|
||
DashLastMonth: "Last month",
|
||
DashCustom: "Custom",
|
||
DashFrom: "From",
|
||
DashTo: "To",
|
||
DashRangeReversed: "The start date must not be after the end date.",
|
||
DashLoadFailed: "Could not load the dashboard.",
|
||
DashCaptures: "Captures",
|
||
DashNewLeads: "New leads",
|
||
DashWonInPeriod: "Won in period",
|
||
DashConversionRate: "Conversion rate",
|
||
DashMedianDays: "Median days to win",
|
||
DashOverdue: "Overdue follow-ups",
|
||
DashFunnel: "Funnel",
|
||
DashTrend: "Captures and wins over time",
|
||
DashWins: "Wins",
|
||
DashByEvent: "By event",
|
||
DashBySalesperson: "By salesperson",
|
||
DashByInterest: "By interest",
|
||
DashEvent: "Event",
|
||
DashSalesperson: "Salesperson",
|
||
DashInterest: "Interest",
|
||
DashAssigned: "Assigned",
|
||
DashWorked: "Worked",
|
||
DashConversion: "Conversion",
|
||
DashOverdueShort: "Overdue",
|
||
DashUnassigned: "Unassigned",
|
||
DashUnknownUser: "Unknown user",
|
||
DashEmpty: "No data for this period",
|
||
Close: "Close",
|
||
Enabled: "Enabled",
|
||
Admin: "Admin",
|
||
Member: "Member",
|
||
Type: "Type",
|
||
Category: "Category",
|
||
Back: "Back",
|
||
Send: "Send",
|
||
Title: "Title",
|
||
CatActions: "Actions",
|
||
SetupLoadOptionsFailed: "Failed to load form options",
|
||
CatStatusFilter: "Status filter",
|
||
Brand: "Brand",
|
||
Change: "Change",
|
||
To: "To",
|
||
All: "All",
|
||
Message: "Message",
|
||
Date: "Date",
|
||
In: "In",
|
||
Out: "Out",
|
||
Inventory: "Inventory",
|
||
Branch: "Branch",
|
||
Edit: "Edit",
|
||
Export: "Export",
|
||
UiMoreActionsFor: "More actions for {label}",
|
||
UsrUsernameRequired: "Username is required.",
|
||
UsrEmailRequired: "Email is required.",
|
||
UsrEmailInvalid: "Enter a valid email address.",
|
||
UsrSaveFailed: "Failed to save user.",
|
||
UsrRemoveRole: "Remove {role}",
|
||
UsrLoadingRoles: "Loading roles",
|
||
UsrNoRolesAvailable: "No roles available.",
|
||
UsrDisabledHint: "Disabled users cannot sign in.",
|
||
UsrOwnAccountHint: "You can't deactivate your own account",
|
||
UsrNameRequired: "Name is required.",
|
||
UsrCreatedBanner: "User created. Give them the password you set; they will be asked to choose their own at first sign-in.",
|
||
UsrCreatedNoPassword: "User created, but the password was not stored. Open the user from the users list and use Set temporary password.",
|
||
UsrBackToUsers: "Back to users",
|
||
UsrConfirmPassword: "Confirm password",
|
||
UsrPasswordRequired: "Password is required.",
|
||
UsrPasswordMismatch: "The passwords do not match.",
|
||
UsrSetTempPassword: "Set temporary password",
|
||
UsrSetTempPasswordBody: "Type a temporary password and give it to the user. Their old password stops working, and they must choose a new one at next sign-in.",
|
||
UsrSetPasswordSubmit: "Set password",
|
||
UsrSetPasswordFailed: "Failed to set the password.",
|
||
UsrTempPasswordSet: "Temporary password set. The user must change it at next sign-in.",
|
||
PwdHint_ALPHABET_LENGTH_MIN: "Letters: at least {n}",
|
||
PwdHint_ALPHABET_LENGTH_MAX: "Letters: at most {n}",
|
||
PwdHint_NUMERIC_LENGTH_MIN: "Digits: at least {n}",
|
||
PwdHint_NUMERIC_LENGTH_MAX: "Digits: at most {n}",
|
||
PwdHint_UPPERCASE_LENGTH_MIN: "Capital letters: at least {n}",
|
||
PwdHint_UPPERCASE_LENGTH_MAX: "Capital letters: at most {n}",
|
||
PwdHint_LOWERCASE_LENGTH_MIN: "Small letters: at least {n}",
|
||
PwdHint_LOWERCASE_LENGTH_MAX: "Small letters: at most {n}",
|
||
PwdHint_SYMBOLIC_LENGTH_MIN: "Symbols: at least {n}",
|
||
PwdHint_SYMBOLIC_LENGTH_MAX: "Symbols: at most {n}",
|
||
PwdHint_INPUT_LENGTH_MIN: "Length: at least {n}",
|
||
PwdHint_INPUT_LENGTH_MAX: "Length: at most {n}",
|
||
PwdHint_NO_OTHER_LANGUAGE: "English letters only",
|
||
PwdHint_SPACE_NOT_ALLOWED: "No spaces",
|
||
PwdRuleRefused: 'Password does not meet the rule "{rule}"',
|
||
LoginStaffCompanyHint: "Staff sign in with their company code.",
|
||
UiDatePlaceholder: "DD/MM/YYYY",
|
||
UiOpenCalendarFor: "Open calendar for {label}",
|
||
UiOpenCalendar: "Open calendar",
|
||
UiClear: "Clear",
|
||
UsrLoadFailed: "Failed to load user",
|
||
UsrSaved: "User saved.",
|
||
UsrResetSent: "Password reset email sent to {email}.",
|
||
UsrResetNotAdmin: "No password reset email sent — user is not an active admin.",
|
||
UsrResetFailed: "Failed to send password reset email.",
|
||
UsrEditUser: "Edit user",
|
||
UsrNotFound: "No user found for “{id}”",
|
||
UsrEditNamed: "Edit {username}",
|
||
UsrSendReset: "Send password reset",
|
||
UsrSendResetTitle: "Send password reset email?",
|
||
UsrResetConfirmBody: "{email} will receive a new temporary password by email.",
|
||
UsrNewUser: "New user",
|
||
UsrCreateUser: "Create user",
|
||
UsrListLoadFailed: "Failed to load users",
|
||
Disabled: "Disabled",
|
||
UsrAddUser: "Add user",
|
||
UsrSearchLabel: "Username, name or email",
|
||
UsrNoMatch: "No users match your filters",
|
||
UsrNoUsers: "No users found",
|
||
RolSelfLockHint: "You can't remove your own access to Roles.",
|
||
RolAccessLoadFailed: "Failed to load access matrix",
|
||
RolAccessSaveFailed: "Failed to save access matrix",
|
||
RolAccessTitle: "Access for {role}",
|
||
RolNoModules: "No modules found",
|
||
RolChangeOne: "{count} change",
|
||
RolChangeMany: "{count} changes",
|
||
RolNoChanges: "No changes",
|
||
RolReset: "Reset",
|
||
RolConfirmChanges: "Confirm access changes",
|
||
RolGrantList: "Grant: {list}.",
|
||
RolRevokeList: "Revoke: {list}.",
|
||
RolNameRequired: "Role name is required.",
|
||
RolSaveFailed: "Failed to save role",
|
||
RolEditRole: "Edit role",
|
||
RolAddRole: "Add role",
|
||
RolRoleName: "Role name",
|
||
RolLoadFailed: "Failed to load roles",
|
||
RolColRole: "Role",
|
||
RolManageAccess: "Manage access",
|
||
RolNoRoles: "No roles found",
|
||
Yes: "Yes",
|
||
No: "No",
|
||
// Event form messages
|
||
EvtNameRequired: "Name is required.",
|
||
EvtLocationRequired: "Location is required.",
|
||
EvtStartDate: "Start date",
|
||
EvtEndDate: "End date",
|
||
EvtStartRequired: "Start date is required.",
|
||
EvtEndRequired: "End date is required.",
|
||
EvtEndBeforeStart: "End date must not be before start date.",
|
||
EvtNameTooLong: "Name must be 100 characters or fewer.",
|
||
EvtLocationTooLong: "Location must be 200 characters or fewer.",
|
||
EvtSaveFailed: "Failed to save event.",
|
||
EvtInactiveMember: "Inactive",
|
||
EvtTeamLabel: "Team",
|
||
Location: "Location",
|
||
Create: "Create",
|
||
BO_EVENTS: "Events",
|
||
EvtNewEvent: "New event",
|
||
EvtEdit: "Edit",
|
||
EvtNoEvents: "No events found",
|
||
EvtNoMatch: "No events match your filters",
|
||
EvtListLoadFailed: "Failed to load events",
|
||
EvtLoadFailed: "Failed to load event",
|
||
EvtEditEvent: "Edit event",
|
||
EvtEditNamed: "Edit {name}",
|
||
EvtNotFound: "No event found for \"{uuid}\"",
|
||
EvtCreatedBanner: "Event created.",
|
||
EvtSaved: "Event saved.",
|
||
EvtTeamNotSaved: "The event was saved but its team was not. Check the team and save again.",
|
||
EvtEventNameFilter: "Event name",
|
||
EvtStatusFilter: "Status filter",
|
||
// Interest (product/service) messages
|
||
BO_INTERESTS: "Interests",
|
||
IntAddInterest: "Add interest",
|
||
IntEditInterest: "Edit interest",
|
||
IntInterestName: "Name",
|
||
IntInterestOrder: "Order",
|
||
IntColInterest: "Name",
|
||
IntColOrder: "Order",
|
||
IntColStatus: "Status",
|
||
IntNoInterests: "No interests found",
|
||
IntLoadFailed: "Failed to load interests",
|
||
IntNameRequired: "Name is required.",
|
||
IntNameTooLong: "Name must be 100 characters or fewer.",
|
||
IntSaveFailed: "Failed to save interest.",
|
||
IntDuplicateName: "An interest with this name already exists.",
|
||
IntActive: "Active",
|
||
IntInactive: "Inactive",
|
||
IntActivate: "Activate",
|
||
IntDeactivate: "Deactivate",
|
||
IntActivateFailed: "Failed to activate interest.",
|
||
IntDeactivateFailed: "Failed to deactivate interest.",
|
||
IntDelete: "Delete",
|
||
IntDeleteTitle: "Delete interest",
|
||
IntDeleteConfirm: "Delete \"{name}\"? It disappears from the list and can no longer be chosen.",
|
||
IntDeleteFailed: "Failed to delete interest.",
|
||
IntDeactivateTitle: "Deactivate interest",
|
||
IntDeactivateConfirm: "Deactivate \"{name}\"? It can no longer be chosen until activated again.",
|
||
IntNameDeleted: "This name belongs to a deleted interest.",
|
||
RolDelete: "Delete",
|
||
RolDeleteTitle: "Delete role",
|
||
RolDeleteConfirm: "Delete role \"{name}\"?",
|
||
RolDeleteFailed: "Failed to delete role.",
|
||
RolInUse: "Users holding this role: {n}. Remove it from them first.",
|
||
RolProtected: "This role is built in and cannot be deleted.",
|
||
RolNameDeleted: "This name belongs to a deleted role.",
|
||
DashWonInPeriodNote: "Leads won in this period, whenever they were captured.",
|
||
DashFunnelNote: "This period's captures, by their current stage.",
|
||
// Event leads messages
|
||
BO_EVENT_LEADS: "Event leads",
|
||
LeadName: "Name",
|
||
LeadMobile: "Mobile",
|
||
LeadType: "Lead type",
|
||
LeadSalesperson: "Salesperson",
|
||
LeadTemperature: "Temperature",
|
||
LeadInterests: "Interests",
|
||
LeadNextFollowUp: "Next follow-up",
|
||
LeadAddLead: "Add lead",
|
||
LeadNoEvents: "No events found",
|
||
LeadNoLeads: "No leads found",
|
||
LeadNoMatch: "No leads match your filters",
|
||
LeadLoadFailed: "Failed to load events",
|
||
LeadListLoadFailed: "Failed to load leads",
|
||
LeadSalespersonFilter: "Salesperson filter",
|
||
LeadTemperatureFilter: "Temperature filter",
|
||
LeadStatusFilter: "Status filter",
|
||
LeadInterestFilter: "Interest filter",
|
||
LeadLeadTypeFilter: "Lead type filter",
|
||
LeadAttendedFilter: "Attended filter",
|
||
LeadNotAttended: "Not attended",
|
||
LeadSource: "Source",
|
||
LeadSourceStaff: "Staff",
|
||
LeadSourceQr: "QR",
|
||
LeadSourceInvite: "Invite",
|
||
LeadSourceWeb: "Web page",
|
||
LeadWebPage: "Web page: {path}",
|
||
LeadCampaign: "Campaign: {tags}",
|
||
LeadHot: "Hot",
|
||
LeadWarm: "Warm",
|
||
LeadCold: "Cold",
|
||
LeadOpen: "Open",
|
||
LeadContacted: "Contacted",
|
||
LeadQualified: "Qualified",
|
||
LeadWon: "Won",
|
||
LeadLost: "Lost",
|
||
LeadNew: "New",
|
||
LeadExisting: "Existing",
|
||
LeadCompany: "Company",
|
||
LeadsLeadCompany: "Lead's company",
|
||
LeadJobTitle: "Job title",
|
||
LeadStatus: "Status",
|
||
LeadNotes: "Notes",
|
||
LeadNext: "Next",
|
||
LeadNone: "None",
|
||
LeadAlreadyCaptured: "Already captured",
|
||
LeadThisPerson: "This person",
|
||
LeadDifferentPerson: "Different person",
|
||
LeadOptionsLoadFailed: "Failed to load salespeople or interests",
|
||
LeadEventDisabled: "This event is closed for new leads.",
|
||
LeadSaveFailed: "Could not save the lead. Please try again.",
|
||
LeadMatchFailed: "Could not look up this contact. Please try again.",
|
||
LeadErrRequiredContact: "Mobile or email is required.",
|
||
LeadErrRequired: "This field is required.",
|
||
LeadErrTooLong: "Too long.",
|
||
LeadErrInvalidMobile: "Enter a valid mobile number.",
|
||
LeadErrInvalidEmail: "Enter a valid email address.",
|
||
LeadErrInvalidDate: "Enter a valid date.",
|
||
LeadErrNotOnTeam: "This person is not on the event team.",
|
||
LeadErrInactiveInterest: "An interest is no longer active.",
|
||
LeadErrInvalidValue: "Invalid value.",
|
||
LeadCaptured: "Captured",
|
||
LeadNotFound: "Lead not found",
|
||
LeadGetFailed: "Failed to load the lead",
|
||
BO_LEADS: "Leads",
|
||
BO_WHATSAPP: "WhatsApp",
|
||
BO_WHATSAPP_ADMIN: "WhatsApp admin",
|
||
WaUnread: "{n} unread",
|
||
WaOwnedBy: "{name} owns this chat.",
|
||
WaOpenChat: "Open chat",
|
||
WaTabMine: "Mine",
|
||
WaTabAll: "All",
|
||
WaUnassigned: "Unassigned",
|
||
WaSearch: "Search name or number",
|
||
WaListFailed: "The chats could not be loaded.",
|
||
WaNoChats: "No chats here yet",
|
||
WaPickChat: "Pick a chat to read it",
|
||
WaChat: "Chat",
|
||
WaBack: "All chats",
|
||
WaLead: "Lead",
|
||
WaOwner: "Owner",
|
||
WaOwnerIs: "Owner: {name}",
|
||
WaAutomatic: "Automatic",
|
||
WaAutomaticIs: "Automatic ({name})",
|
||
WaWindowOpen: "Replies open for {h} h",
|
||
WaWindowClosed: "Window closed: send a template",
|
||
WaWindowClosedHint: "The contact has not written in the last 24 hours, so only an approved template can be sent.",
|
||
WaWindowClosedNow: "The reply window has closed. Send a template instead.",
|
||
WaMessage: "Message",
|
||
WaSend: "Send",
|
||
WaSendFailed: "The message could not be sent.",
|
||
WaThreadFailed: "The chat could not be loaded.",
|
||
WaLoadOlder: "Load older messages",
|
||
WaTemplate: "Template",
|
||
WaChooseTemplate: "Choose a template",
|
||
WaSendTemplate: "Send template",
|
||
WaTemplateUnsupported: "Not supported",
|
||
WaTemplatesFailed: "The templates could not be loaded.",
|
||
WaNoTemplates: "No approved templates yet.",
|
||
WaSyncTemplates: "Sync from Meta",
|
||
WaStatus_pending: "Sending",
|
||
WaStatus_sent: "Sent",
|
||
WaStatus_delivered: "Delivered",
|
||
WaStatus_read: "Read",
|
||
WaNotDelivered: "Not delivered: {title} ({code})",
|
||
WaMediaExpired: "Media expired",
|
||
WaUnsupported: "This message type is not shown here",
|
||
WaImage: "Image",
|
||
WaSticker: "Sticker",
|
||
WaDocument: "Document",
|
||
WaNotConfigured: "WhatsApp is not set up for this company.",
|
||
WaStartFailed: "The chat could not be started.",
|
||
BO_EMAILS: "Emails",
|
||
EmlDate: "Date",
|
||
EmlRecipient: "Recipient",
|
||
EmlSubject: "Subject",
|
||
EmlSender: "Sender",
|
||
EmlFrom: "From date",
|
||
EmlTo: "To date",
|
||
EmlBody: "Email body",
|
||
EmlStatusPending: "Pending",
|
||
EmlStatusFailed: "Failed",
|
||
EmlStatusSuccess: "Success",
|
||
EmlNoEmails: "No emails found",
|
||
EmlNoMatch: "No emails match your filters",
|
||
EmlListLoadFailed: "Failed to load emails",
|
||
EmlLoadFailed: "Failed to load the email",
|
||
EmlNotFound: "Email not found",
|
||
EmlSuperAdminOnly: "Only a super admin can read this email.",
|
||
EmlBackToEmails: "Back to emails",
|
||
LeadsSearch: "Search name, mobile or email",
|
||
LeadsExportTooLarge: "More than 20,000 rows. Narrow the search or filters.",
|
||
LeadsEvents: "Events",
|
||
LeadsLastEvent: "Last event",
|
||
LeadsLatestSalesperson: "Latest salesperson",
|
||
LeadsHistory: "Event history",
|
||
LeadsSaved: "Lead saved.",
|
||
LeadsSameMobileAs: "Same mobile as",
|
||
LeadsSameEmailAs: "Same email as",
|
||
LeadsSameMobileEmailAs: "Same mobile and email as",
|
||
LeadsViewLead: "View lead",
|
||
BO_LOGIN_SECURITY: "Login security",
|
||
LsTabHistory: "History",
|
||
LsTabLocked: "Locked",
|
||
LsTabSettings: "Settings",
|
||
LsTime: "Time",
|
||
LsEvent: "Event",
|
||
LsIp: "IP",
|
||
LsBrowser: "Browser",
|
||
LsNote: "Note",
|
||
LsFrom: "From date",
|
||
LsTo: "To date",
|
||
LsAllEvents: "All events",
|
||
LsEventLoginSuccess: "Login succeeded",
|
||
LsEventLoginFail: "Login failed",
|
||
LsEventLoginLocked: "Account locked",
|
||
LsEventLogout: "Logout",
|
||
LsEventUnlockReset: "Unlocked by an admin",
|
||
LsEventPasswordChanged: "Password changed",
|
||
LsNoHistory: "No sign-in history found",
|
||
LsNoMatch: "No sign-in history matches your filters",
|
||
LsHistoryLoadFailed: "Failed to load the sign-in history",
|
||
LsFailures: "Failures",
|
||
LsLastFailure: "Last failure",
|
||
LsLockedUntil: "Locked until",
|
||
LsUnlock: "Unlock",
|
||
LsUnlockTitle: "Unlock account",
|
||
LsUnlockConfirm: "Allow {username} to sign in again?",
|
||
LsNoLocked: "No locked accounts",
|
||
LsLockedLoadFailed: "Failed to load the locked accounts",
|
||
LsUnlockFailed: "Failed to unlock the account",
|
||
LsLockoutTitle: "Lockout",
|
||
LsLockoutOn: "Lockout on",
|
||
LsMaxAttempts: "Max attempts",
|
||
LsPeriod: "Period",
|
||
LsUnit: "Unit",
|
||
LsUnitS: "Seconds",
|
||
LsUnitM: "Minutes",
|
||
LsUnitH: "Hours",
|
||
LsUnitD: "Days",
|
||
LsSaveLockout: "Save lockout settings",
|
||
LsLockoutSaved: "Lockout settings saved.",
|
||
LsRulesTitle: "Password rules",
|
||
LsRuleOn: "On",
|
||
LsRuleValue: "Value",
|
||
LsRuleName: "Rule",
|
||
LsSaveRules: "Save password rules",
|
||
LsRulesSaved: "Password rules saved.",
|
||
LsSettingsLoadFailed: "Failed to load the settings",
|
||
LsSaveFailed: "Failed to save",
|
||
BO_AUDIT_LOG: "Audit log",
|
||
BO_DASHBOARD: "Dashboard",
|
||
BO_LEADS_EDIT: "Lead editing",
|
||
BO_LEADS_EXPORT: "Lead export",
|
||
AuditWho: "Who",
|
||
AuditModule: "Module",
|
||
AuditAction: "Action",
|
||
AuditTarget: "Target",
|
||
AuditOutcome: "Outcome",
|
||
AuditAllModules: "All modules",
|
||
AuditAllOutcomes: "All outcomes",
|
||
AuditSuccess: "Success",
|
||
AuditFailure: "Failure",
|
||
AuditNoEvents: "No audit events found",
|
||
AuditNoMatch: "No audit events match your filters",
|
||
AuditLoadFailed: "Failed to load the audit log",
|
||
AuditNotFound: "Audit event not found",
|
||
AuditBack: "Back to audit log",
|
||
AuditRequest: "Request",
|
||
AuditChanges: "Changes",
|
||
AuditNoChanges: "No changes recorded.",
|
||
AuditField: "Field",
|
||
AuditBefore: "Before",
|
||
AuditAfter: "After",
|
||
AuditFieldsOnly: "Values are not recorded for these fields.",
|
||
PwdRule_INPUT_LENGTH_MIN: "Minimum length",
|
||
PwdRule_INPUT_LENGTH_MAX: "Maximum length",
|
||
PwdRule_ALPHABET_LENGTH_MIN: "Minimum letters",
|
||
PwdRule_ALPHABET_LENGTH_MAX: "Maximum letters",
|
||
PwdRule_UPPERCASE_LENGTH_MIN: "Minimum uppercase letters",
|
||
PwdRule_UPPERCASE_LENGTH_MAX: "Maximum uppercase letters",
|
||
PwdRule_LOWERCASE_LENGTH_MIN: "Minimum lowercase letters",
|
||
PwdRule_LOWERCASE_LENGTH_MAX: "Maximum lowercase letters",
|
||
PwdRule_NUMERIC_LENGTH_MIN: "Minimum digits",
|
||
PwdRule_NUMERIC_LENGTH_MAX: "Maximum digits",
|
||
PwdRule_SYMBOLIC_LENGTH_MIN: "Minimum symbols",
|
||
PwdRule_SYMBOLIC_LENGTH_MAX: "Maximum symbols",
|
||
PwdRule_NO_OTHER_LANGUAGE: "Latin characters only",
|
||
PwdRule_SPACE_NOT_ALLOWED: "No spaces",
|
||
// QR self-registration (public page, QR cards, privacy notice)
|
||
RegInactive: "This code is no longer active.",
|
||
RegLoadFailed: "Could not load this page. Try again later.",
|
||
RegName: "Your name",
|
||
RegMobile: "Mobile number",
|
||
RegEmail: "Email",
|
||
RegContactHint: "Mobile or email is required",
|
||
RegCompany: "Company",
|
||
RegJobTitle: "Job title",
|
||
RegInterests: "Interests (optional)",
|
||
RegNoticeEn: "English",
|
||
RegNoticeMs: "Bahasa Malaysia",
|
||
RegConsentEn: "I agree to {company} using my details as described above.",
|
||
RegConsentMs: "Saya bersetuju {company} menggunakan butiran saya seperti yang diterangkan di atas.",
|
||
RegSubmit: "Register",
|
||
RegAnother: "Register another person",
|
||
RegThanks: "Thank you, you're registered for {event}",
|
||
RegNameRequired: "Enter your name.",
|
||
RegContactRequired: "Enter a mobile number or an email.",
|
||
RegTooMany: "Too many registrations from this device. Try again later.",
|
||
RegFailed: "Could not register. Try again.",
|
||
RegFull: "This event is full",
|
||
InviteInactive: "This invitation is no longer active.",
|
||
InviteCheckin: "Check in",
|
||
InviteTitle: "You're invited to {event}",
|
||
InviteTooMany: "Too many attempts. Try again later.",
|
||
InviteWelcome: "Welcome, {name}. You're checked in.",
|
||
InviteWelcomeAnon: "Welcome. You're checked in.",
|
||
InviteRegistered: "You're already registered for {event}.",
|
||
InviteCheckedIn: "You're already checked in to {event}.",
|
||
ChkNotYet: "Check-in opens on {date}.",
|
||
ChkEnded: "This event has ended.",
|
||
ChkLookup: "Mobile number or email",
|
||
ChkDone: "You're checked in to {event}.",
|
||
QrCardTitle: "Registration QR",
|
||
QrEventCode: "Event code",
|
||
QrCopy: "Copy link",
|
||
QrCopied: "Link copied",
|
||
CopyFailed: "Could not copy.",
|
||
QrDownload: "Download PNG",
|
||
QrEnabled: "Enabled",
|
||
QrNote: "Paste the link into the dynamic-qr console to get a QR that can be changed later.",
|
||
QrLoadFailed: "Could not load registration codes.",
|
||
QrSaveFailed: "Could not change the code.",
|
||
QrMyTitle: "My QR codes",
|
||
QrSwitchedOff: "Switched off",
|
||
QrShare: "Share",
|
||
QrShareText: "Register for {event}",
|
||
QrFullScreen: "Show full screen",
|
||
QrNewCode: "You have a new registration code.",
|
||
QrDismiss: "Dismiss",
|
||
QrMyNone: "You have no registration codes yet.",
|
||
PrivNotice: "Privacy notice",
|
||
PrivSave: "Save notice",
|
||
PrivSaveFailed: "Could not save the notice.",
|
||
PrivLoadFailed: "Could not load the notice.",
|
||
PrivLastChanged: "Last changed by {user} on {date}",
|
||
QrCheckinCode: "Check-in code",
|
||
QrCopyAll: "Copy all links",
|
||
QrPrintCards: "Print cards",
|
||
EvtCapacity: "Capacity",
|
||
EvtInvitationCap: "Invitation cap",
|
||
GuestsTitle: "Guests",
|
||
GuestsLoadFailed: "Could not load guests.",
|
||
GuestsNote: "Emails are saved until delivery is set up. Copy a guest's link to share it now.",
|
||
GuestNumbers: "Attendance numbers",
|
||
GuestInvited: "Invited",
|
||
GuestRegistered: "Registered",
|
||
GuestAttended: "Attended",
|
||
GuestWalkIns: "Walk-ins",
|
||
GuestTotal: "Total",
|
||
GuestName: "Guest name",
|
||
GuestMobile: "Guest mobile",
|
||
GuestEmail: "Guest email",
|
||
GuestCompany: "Guest company",
|
||
GuestAdd: "Add guest",
|
||
GuestAddFailed: "Could not add the guest.",
|
||
GuestPaste: "Paste guests",
|
||
GuestPasteHelp: "One guest per line: name, mobile, email, company.",
|
||
GuestPreview: "Preview",
|
||
GuestSave: "Save guests",
|
||
GuestWillAddOne: "1 guest will be added",
|
||
GuestWillAddMany: "{count} guests will be added",
|
||
GuestLineError: "Line {line}: {reason}",
|
||
GuestSend: "Send invite",
|
||
GuestSendTo: "Send invite to {name}",
|
||
GuestCopyLinkFor: "Copy link for {name}",
|
||
GuestRemove: "Remove",
|
||
GuestRemoveNamed: "Remove {name}",
|
||
GuestInviteSent: "Invites sent",
|
||
GuestAddedCount: "Added {count}",
|
||
GuestSendAll: "Send to all unsent",
|
||
GuestSendResult: "Sent {sent}, skipped {skipped} with no email",
|
||
GuestNoUnsent: "No unsent invitations",
|
||
GuestSendFailed: "Could not send the invites.",
|
||
GuestRegisteredRefused: "This guest has already registered and cannot be removed.",
|
||
GuestRemoveFailed: "Could not remove the guest.",
|
||
PrintCardsTitle: "Print cards",
|
||
PrintButton: "Print",
|
||
// add-zh-cn-messages: Languages and Translations
|
||
BO_MESSAGES: "Translations",
|
||
BO_LOCALES: "Languages",
|
||
LocalesTitle: "Languages",
|
||
LocalesAdd: "Add language",
|
||
LocalesEdit: "Edit language",
|
||
LocalesEditRow: "Edit {code}",
|
||
LocalesLabel: "Label",
|
||
LocalesSortOrder: "Order",
|
||
LocalesCodeHint: "Language and region, for example ms_MY. It cannot be changed later.",
|
||
LocalesActive: "Active",
|
||
LocalesInactive: "Inactive",
|
||
LocalesEnabledSwitch: "{label} enabled",
|
||
LocalesEmpty: "No languages yet.",
|
||
LocalesRequired: "Code and label are required.",
|
||
LocalesLoadFailed: "Could not load the languages.",
|
||
LocalesSaveFailed: "Could not save the language.",
|
||
LocalesDuplicateCode: "This language code already exists.",
|
||
LocalesCodeLocked: "A language code cannot be changed.",
|
||
LocalesFallbackLocked: "English is the fallback language and stays on.",
|
||
LocalesLastEnabledLocked: "At least one language must stay on.",
|
||
LocaleNotFound: "This language no longer exists.",
|
||
LocalesDisableTitle: "Switch off {label}?",
|
||
LocalesDisableBody: "Staff can no longer pick {label}. Its translations are kept.",
|
||
LocalesDisableConfirm: "Switch off",
|
||
MsgsTitle: "Translations",
|
||
MsgsEdit: "Edit translation",
|
||
MsgsExport: "Export",
|
||
MsgsImport: "Import",
|
||
MsgsSearchGroup: "Search",
|
||
MsgsSearchLabel: "Search translations",
|
||
MsgsSearchPlaceholder: "Code, English or Chinese",
|
||
MsgsMissingChineseFilter: "Missing Chinese",
|
||
MsgsOwnLabelsFilter: "Co-Lite labels only",
|
||
MsgsBadgeMissing: "Missing",
|
||
MsgsBadgeSameAsEnglish: "Same as English",
|
||
MsgsEmpty: "No translations yet.",
|
||
MsgsNoMatch: "No translations match these filters.",
|
||
MsgsLoadFailed: "Could not load the translations.",
|
||
MsgsLoadOneFailed: "Could not open this translation.",
|
||
MsgsSaveFailed: "Could not save the translation.",
|
||
MsgsExportFailed: "Could not export the translations.",
|
||
MsgsNotFound: "This translation no longer exists.",
|
||
MsgsCodeAreaLocked: "A label's code cannot be changed.",
|
||
MsgsDuplicateCode: "A label with this code already exists.",
|
||
MsgsCodeRequired: "The code is missing.",
|
||
MsgsPlaceholderMismatch: "Placeholders must match English. Missing: {missing}. Extra: {extra}.",
|
||
MsgsPlaceholderAlreadyDifferent: "Placeholders already differed from English before this edit. Missing: {missing}. Extra: {extra}.",
|
||
MsgsDiscardTitle: "Discard changes?",
|
||
MsgsDiscardBody: "Your edits to this translation are not saved.",
|
||
MsgsDiscardConfirm: "Discard",
|
||
MsgsImportFileLabel: "Translations file (JSON)",
|
||
MsgsImportInvalidJson: "This file is not valid JSON.",
|
||
MsgsImportNotArray: "The file must hold a list of translations, as Export writes it.",
|
||
MsgsImportReadFailed: "Could not read the current translations.",
|
||
MsgsImportFailed: "The import failed.",
|
||
MsgsImportPreview: "{created} to create, {updated} to update.",
|
||
MsgsImportRowError: "Row {index} ({code}): {error}",
|
||
MsgsImportRowInvalid: "needs a code and content, and is skipped",
|
||
MsgsImportEnglishCol: "English",
|
||
MsgsWillCreate: "Will create",
|
||
MsgsWillUpdate: "Will update",
|
||
MsgsImportChooseAnother: "Choose another file",
|
||
MsgsConfirmImport: "Confirm import",
|
||
MsgsImportSummary: "{created} created, {updated} updated, {errors} failed.",
|
||
// Landing pages (add-landing-pages)
|
||
BO_PAGES: "Pages",
|
||
PagesNew: "New page",
|
||
PagesSearch: "Search pages",
|
||
PagesAddress: "Address",
|
||
PagesUpdated: "Updated",
|
||
PagesPublished: "Published",
|
||
PagesDraft: "Draft",
|
||
PagesNone: "No pages yet",
|
||
PagesNoMatch: "No pages match",
|
||
PagesLoadFailed: "Could not load pages.",
|
||
PagesEdit: "Edit page",
|
||
PagesPageCard: "Page",
|
||
PagesSlug: "Slug",
|
||
PagesAddressHint: "Address: {address}",
|
||
PagesMetaDescription: "Description for search engines",
|
||
PagesPreview: "Preview",
|
||
PagesPreviewBanner: "Preview. Visitors see this page only once it is published.",
|
||
PagesViewPage: "View page",
|
||
PagesSaved: "Page saved.",
|
||
PagesSaveFailed: "Could not save the page. Try again.",
|
||
PagesNotFound: "Page not found.",
|
||
PagesNotFoundBody: "This page does not exist or is not published.",
|
||
PagesDelete: "Delete page",
|
||
PagesDeleteTitle: "Delete this page?",
|
||
PagesDeleteMessage: "\"{title}\" will stop working for anyone who has its link. This cannot be undone.",
|
||
PagesAddBlock: "Add {type}",
|
||
PagesBlockLegend: "Block {number}: {type}",
|
||
PagesBlockHero: "Hero",
|
||
PagesBlockRichText: "Text",
|
||
PagesBlockImageText: "Image with text",
|
||
PagesBlockFaq: "FAQ",
|
||
PagesBlockForm: "Sign-up form",
|
||
PagesMoveUp: "Move up",
|
||
PagesMoveDown: "Move down",
|
||
PagesRemoveBlock: "Remove block",
|
||
PagesImage: "Image",
|
||
PagesImagePreview: "Image preview",
|
||
PagesUploadsOnSave: "{name} uploads when you save.",
|
||
PagesHeading: "Heading",
|
||
PagesText: "Text",
|
||
PagesContent: "Content",
|
||
PagesButtonLabel: "Button label",
|
||
PagesButtonLink: "Button link",
|
||
PagesImageSide: "Image side",
|
||
PagesImageLeft: "Left",
|
||
PagesImageRight: "Right",
|
||
PagesQuestionN: "Question {number}",
|
||
PagesAnswerN: "Answer {number}",
|
||
PagesRemoveQuestionN: "Remove question {number}",
|
||
PagesAddQuestion: "Add question",
|
||
PagesFormEvent: "Event",
|
||
PagesChooseEvent: "Choose an event",
|
||
PagesUnavailableEvent: "Event no longer available",
|
||
PagesFormEventHint: "Sign-ups become leads of this event. For general enquiries, pick your standing enquiries event.",
|
||
PagesFormClosed: "Sign-up is closed.",
|
||
PagesFormPreview: "The sign-up form shows here on the published page.",
|
||
PagesToolbar: "Formatting",
|
||
PagesTextStyle: "Text style",
|
||
PagesParagraph: "Paragraph",
|
||
PagesHeadingLevel: "Heading {level}",
|
||
PagesBold: "Bold",
|
||
PagesItalic: "Italic",
|
||
PagesUnderline: "Underline",
|
||
PagesStrike: "Strikethrough",
|
||
PagesAlignLeft: "Align left",
|
||
PagesAlignCentre: "Align centre",
|
||
PagesAlignRight: "Align right",
|
||
PagesBulletList: "Bulleted list",
|
||
PagesNumberedList: "Numbered list",
|
||
PagesQuote: "Quote",
|
||
PagesDivider: "Divider",
|
||
PagesLink: "Link",
|
||
PagesLinkPrompt: "Link address (https://, mailto:, tel: or /)",
|
||
PagesClearFormatting: "Clear formatting",
|
||
// Server refusals (the code is the message key; the field says where it shows)
|
||
PagesTooManyBlocks: "A page can have at most 30 blocks.",
|
||
PagesUnknownType: "This block type is not supported.",
|
||
PagesRequired: "Required.",
|
||
PagesTooLong: "Too long.",
|
||
PagesBadImagePosition: "Choose left or right.",
|
||
PagesFaqCount: "Add between 1 and 30 questions.",
|
||
PagesButtonPair: "Fill in both the button label and the button link, or neither.",
|
||
PagesBadLink: "Use a link that starts with https://, mailto:, tel: or /.",
|
||
PagesScript: "Scripts and event handlers are not allowed.",
|
||
PagesBadImage: "Upload the image again.",
|
||
PagesBadEvent: "Choose one of this company's events.",
|
||
PagesBadSlug: "Use lower-case letters, numbers and hyphens.",
|
||
PagesBadStatus: "Choose Draft or Published.",
|
||
PagesSlugTaken: "Another page already uses this slug.",
|
||
PagesBadImageType: "Use a PNG, JPEG or WebP image.",
|
||
PagesImageTooLarge: "The image is larger than 2 MB.",
|
||
PAGE_NOT_FOUND: "Page not found.",
|
||
CompanyBadLogo: "Upload the logo again.",
|
||
CompanyBadAccent: "Use a colour like #1A2B3C.",
|
||
CompBranding: "Branding",
|
||
CompLogo: "Logo",
|
||
CompAccent: "Accent colour",
|
||
CompAccentHint: "Used for buttons on this company's landing pages. Leave empty for the default blue.",
|
||
CompBrandingSaveFailed: "Could not save the branding.",
|
||
};
|