Files
co-lite/solvway-admin-portal/app/lib/i18n/defaultMessages.ts
T
ngqileandClaude Opus 5.5 816c8bcb5e fix(admin-portal): drop the direct set-password dialog; the emailed reset stays
An admin could set a colleague's password to a value of their choosing. Only the
emailed temporary-password reset remains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 22:29:38 +08:00

174 lines
6.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 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",
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",
UiBreadcrumb: "breadcrumb",
UiMore: "More",
UiColumns: "Columns",
UiVisibleColumns: "Visible columns",
UiNoResults: "No results.",
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",
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",
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. A temporary password has been emailed to them; they will be asked to set their own at first sign-in.",
UsrCreatedNoEmail: "User created, but the temporary password email could not be sent. Open the user from the users list and use Send password reset to try again.",
UsrBackToUsers: "Back to users",
AdminPasswordHint: "At least 8 characters, with at least one capital letter and one small letter.",
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",
No: "No",
};