refactor: complete i18n rename recipients to people, finalize tests
This commit is contained in:
@@ -36,7 +36,6 @@ export const en = {
|
||||
items: "Items",
|
||||
categories: "Categories",
|
||||
assets: "Assets",
|
||||
recipients: "Recipients",
|
||||
people: "People",
|
||||
movements: "Movements",
|
||||
assignments: "Assignments",
|
||||
@@ -51,7 +50,6 @@ export const en = {
|
||||
category: "Category",
|
||||
item: "Item",
|
||||
asset: "Asset",
|
||||
recipient: "Recipient",
|
||||
person: "Person",
|
||||
assignment: "Assignment",
|
||||
},
|
||||
@@ -392,86 +390,7 @@ export const en = {
|
||||
departmentRequired: "Department is required",
|
||||
emailInvalid: "Email format is invalid",
|
||||
idRequired: "ID is required",
|
||||
},
|
||||
},
|
||||
recipients: {
|
||||
list: {
|
||||
title: "Recipients",
|
||||
addLabel: "Add Recipient",
|
||||
empty: "No recipients found.",
|
||||
columns: {
|
||||
username: "Username",
|
||||
name: "Name",
|
||||
email: "Email",
|
||||
phone: "Phone",
|
||||
department: "Department",
|
||||
actions: "Actions",
|
||||
},
|
||||
actions: {
|
||||
view: "View recipient",
|
||||
edit: "Edit recipient",
|
||||
},
|
||||
},
|
||||
detail: {
|
||||
notFound: "Recipient not found",
|
||||
labels: {
|
||||
username: "Username",
|
||||
email: "Email",
|
||||
phone: "Phone",
|
||||
department: "Department",
|
||||
},
|
||||
},
|
||||
new: {
|
||||
title: "Add Recipient",
|
||||
},
|
||||
edit: {
|
||||
title: "Edit Recipient",
|
||||
notFound: "Recipient not found",
|
||||
},
|
||||
form: {
|
||||
usernameLabel: "Username",
|
||||
usernamePlaceholder: "Username",
|
||||
firstNameLabel: "First Name",
|
||||
firstNamePlaceholder: "First name",
|
||||
lastNameLabel: "Last Name",
|
||||
lastNamePlaceholder: "Last name",
|
||||
departmentLabel: "Department",
|
||||
departmentPlaceholder: "Select a department",
|
||||
emailLabel: "Email",
|
||||
emailPlaceholder: "Email",
|
||||
phoneLabel: "Phone",
|
||||
phonePlaceholder: "Phone",
|
||||
createSubmit: "Create Recipient",
|
||||
updateSubmit: "Update Recipient",
|
||||
},
|
||||
fallback: {
|
||||
unknownDepartment: "Unknown department",
|
||||
},
|
||||
departments: {
|
||||
IT: "IT",
|
||||
ENGINEERING: "Engineering",
|
||||
LOGISTICS: "Logistics",
|
||||
TRAFFIC: "Traffic",
|
||||
DRIVER: "Driver",
|
||||
ADMINISTRATION: "Administration",
|
||||
SALES: "Sales",
|
||||
OTHER: "Other",
|
||||
},
|
||||
actions: {
|
||||
createSuccess: "Recipient created successfully",
|
||||
createFailure: "Failed to create recipient",
|
||||
updateSuccess: "Recipient updated successfully",
|
||||
updateFailure: "Failed to update recipient",
|
||||
duplicateUsername: "Username already exists",
|
||||
duplicateEmail: "Email already exists",
|
||||
},
|
||||
schema: {
|
||||
usernameRequired: "Username is required",
|
||||
firstNameRequired: "First name is required",
|
||||
lastNameRequired: "Last name is required",
|
||||
departmentRequired: "Department is required",
|
||||
emailInvalid: "Email format is invalid",
|
||||
idRequired: "ID is required",
|
||||
userIdInvalid: "User ID must be a valid UUID",
|
||||
},
|
||||
},
|
||||
movements: {
|
||||
@@ -608,10 +527,6 @@ export const en = {
|
||||
title: "Total Assets",
|
||||
countLabel: "Total",
|
||||
},
|
||||
recipients: {
|
||||
title: "Total Recipients",
|
||||
countLabel: "Total",
|
||||
},
|
||||
people: {
|
||||
title: "Total People",
|
||||
countLabel: "Total",
|
||||
|
||||
Reference in New Issue
Block a user