- Implemented ProcessFeedback component for error handling in process forms. - Created ProcessHelp component to provide contextual assistance for users. - Added internationalization support for process-related strings in Spanish and English. - Developed ProcessStartForm for initiating new processes with person and template selection. - Introduced ProcessTemplateForm for creating and editing process templates. - Built ProcessTemplatesPage to display and manage process templates. - Enhanced ProcessesPage to list current processes and allow for creation and detail viewing. - Added unit tests for various components to ensure functionality and correctness.
148 lines
7.5 KiB
TypeScript
148 lines
7.5 KiB
TypeScript
export const mailSpanish = {
|
||
title: "Correos en dispositivos",
|
||
new: "Configurar correo",
|
||
profile: "Perfil de usuario",
|
||
legacy: "Registro anterior pendiente de vincular a buzón y perfil.",
|
||
legacyLink:
|
||
"Selecciona el perfil de esta persona en este dispositivo y un buzón con la misma dirección. Se conservará el historial anterior:",
|
||
edit: "Editar configuración",
|
||
empty: "Todavía no hay correos registrados en dispositivos.",
|
||
search: "Buscar correo, persona o dispositivo…",
|
||
person: "Persona",
|
||
account: "Cuenta informática",
|
||
asset: "Dispositivo",
|
||
choose: "Selecciona un valor",
|
||
address: "Dirección de correo",
|
||
method: "Método de acceso",
|
||
state: "Estado",
|
||
notes: "Notas (opcional)",
|
||
pop: "POP",
|
||
imap: "IMAP",
|
||
exchange: "Exchange",
|
||
other: "Otro",
|
||
pending: "Pendiente de configurar",
|
||
configured: "Configurado",
|
||
removal_pending: "Pendiente de retirar",
|
||
removed: "Retirado",
|
||
never_configured: "No llegó a configurarse",
|
||
review: "Revisar uso: buzón, perfil, persona, dispositivo o periodo de uso no vigente.",
|
||
noAuthorization:
|
||
"Autoriza esta cuenta para la persona antes de guardar una configuración activa.",
|
||
authorize: "Autorizar cuenta para esta persona",
|
||
newAccount: "Nueva cuenta",
|
||
newAsset: "Nuevo dispositivo",
|
||
newPerson: "Nueva persona",
|
||
history: "Historial",
|
||
help: "¿Para qué sirve esta configuración?",
|
||
description:
|
||
"Registra qué correo está configurado en cada dispositivo de una persona y cómo se accede a él.",
|
||
examplesLabel: "Ejemplos y recomendaciones",
|
||
examples:
|
||
"Ana: ana@empresa.es por IMAP en su portátil y por Exchange en su móvil; ventas@empresa.es también en el portátil.",
|
||
guidance:
|
||
"El uso del buzón por la persona se registra por separado y no exige una cuenta informática. Al retirar un correo, confirma primero que se ha eliminado del dispositivo. No introduzcas contraseñas.",
|
||
scope:
|
||
"Puedes registrar varios buzones por persona y varios perfiles por buzón. Los cambios conservan el historial.",
|
||
fixed:
|
||
"Buzón y perfil quedan fijados. Para cambiar alguno, retira esta configuración y crea otra.",
|
||
errors: {
|
||
MAIL_LEGACY_TARGET_MISMATCH:
|
||
"La vinculación debe conservar la persona, dispositivo y dirección del registro anterior.",
|
||
MAILBOX_EXISTS: "Ya existe un buzón con esta dirección.",
|
||
MAILBOX_SCOPE_MISMATCH: "Todos los elementos deben pertenecer a esta compañía.",
|
||
MAILBOX_UNAVAILABLE: "El buzón y la persona deben estar activos.",
|
||
MAILBOX_USE_OVERLAP: "Ya existe un periodo de uso que coincide con estas fechas.",
|
||
MAILBOX_KIND_IMMUTABLE: "El tipo de buzón queda fijo desde el alta.",
|
||
MAILBOX_USE_TARGET_IMMUTABLE: "La persona, buzón y fecha de inicio quedan fijos.",
|
||
MAILBOX_USE_CLOSED: "Este periodo ya está cerrado.",
|
||
MAILBOX_NOT_FOUND: "El buzón no está disponible.",
|
||
MAILBOX_USE_NOT_FOUND: "La vinculación no está disponible.",
|
||
INVALID_PERIOD: "Revisa las fechas del periodo.",
|
||
INVALID_REQUEST: "Revisa los campos; introduce una dirección de correo válida.",
|
||
MAIL_SCOPE_MISMATCH: "El buzón y el perfil deben pertenecer a esta compañía.",
|
||
MAIL_NOT_AUTHORIZED:
|
||
"El perfil y el buzón deben estar vigentes y la persona debe tener un periodo de uso vigente del buzón.",
|
||
MAIL_CONFIGURATION_EXISTS: "Ya hay una configuración abierta para este buzón y perfil.",
|
||
MAIL_TARGET_IMMUTABLE: "Para cambiar buzón o perfil, crea otra configuración.",
|
||
INVALID_MAIL_TRANSITION:
|
||
"El cambio de estado no es válido. Un correo configurado pasa primero a pendiente de retirar.",
|
||
MAIL_CONFIGURATION_NOT_FOUND: "La configuración no está disponible en esta compañía.",
|
||
COMPANY_NOT_FOUND: "La compañía no está disponible.",
|
||
UNAUTHENTICATED: "La sesión ha caducado. Vuelve a entrar.",
|
||
FORBIDDEN: "Recarga la página para autorizar la operación.",
|
||
INTERNAL_ERROR: "No se ha podido completar la operación. Inténtalo de nuevo.",
|
||
},
|
||
};
|
||
export const mailEnglish = {
|
||
title: "Email on devices",
|
||
new: "Configure email",
|
||
profile: "User profile",
|
||
legacy: "Previous record awaiting mailbox and profile linking.",
|
||
legacyLink:
|
||
"Select this person’s profile on this device and a mailbox with the same address. Previous history will be retained:",
|
||
edit: "Edit configuration",
|
||
empty: "No email configurations on devices yet.",
|
||
search: "Find email, person or device…",
|
||
person: "Person",
|
||
account: "IT account",
|
||
asset: "Device",
|
||
choose: "Choose a value",
|
||
address: "Email address",
|
||
method: "Access method",
|
||
state: "Status",
|
||
notes: "Notes (optional)",
|
||
pop: "POP",
|
||
imap: "IMAP",
|
||
exchange: "Exchange",
|
||
other: "Other",
|
||
pending: "Pending configuration",
|
||
configured: "Configured",
|
||
removal_pending: "Pending removal",
|
||
removed: "Removed",
|
||
never_configured: "Never configured",
|
||
review: "Review usage: mailbox, profile, person, device or usage period is no longer valid.",
|
||
noAuthorization: "Authorize this account for the person before saving an active configuration.",
|
||
authorize: "Authorize account for this person",
|
||
newAccount: "New account",
|
||
newAsset: "New device",
|
||
newPerson: "New person",
|
||
history: "History",
|
||
help: "What is this configuration for?",
|
||
description: "Record which email is configured on each person's device and how it is accessed.",
|
||
examplesLabel: "Examples and guidance",
|
||
examples:
|
||
"Ana: ana@company.com via IMAP on her laptop and Exchange on her phone; sales@company.com on the laptop too.",
|
||
guidance:
|
||
"Mailbox usage by the person is tracked separately and does not require an IT account. Confirm removal from the device before marking it removed. Do not enter passwords.",
|
||
scope:
|
||
"Multiple mailboxes per person and multiple profiles per mailbox are supported. Changes retain history.",
|
||
fixed:
|
||
"Mailbox and profile are fixed. To change either, remove this configuration and create another.",
|
||
errors: {
|
||
MAIL_LEGACY_TARGET_MISMATCH: "Linking must preserve the previous person, device and address.",
|
||
MAILBOX_EXISTS: "A mailbox with this address already exists.",
|
||
MAILBOX_SCOPE_MISMATCH: "All elements must belong to this company.",
|
||
MAILBOX_UNAVAILABLE: "Mailbox and person must be active.",
|
||
MAILBOX_USE_OVERLAP: "A usage period already overlaps these dates.",
|
||
MAILBOX_KIND_IMMUTABLE: "Mailbox type is fixed after creation.",
|
||
MAILBOX_USE_TARGET_IMMUTABLE: "Person, mailbox and start date are fixed.",
|
||
MAILBOX_USE_CLOSED: "This period is already closed.",
|
||
MAILBOX_NOT_FOUND: "The mailbox is unavailable.",
|
||
MAILBOX_USE_NOT_FOUND: "The usage link is unavailable.",
|
||
INVALID_PERIOD: "Check the period dates.",
|
||
INVALID_REQUEST: "Review the fields; enter a valid email address.",
|
||
MAIL_SCOPE_MISMATCH: "Mailbox and profile must belong to this company.",
|
||
MAIL_NOT_AUTHORIZED:
|
||
"The profile and mailbox must be current, with an active mailbox usage period for the person.",
|
||
MAIL_CONFIGURATION_EXISTS: "An open configuration already exists for this mailbox and profile.",
|
||
MAIL_TARGET_IMMUTABLE: "Create another configuration to change mailbox or profile.",
|
||
INVALID_MAIL_TRANSITION:
|
||
"Invalid status change. Configured email must first be marked for removal.",
|
||
MAIL_CONFIGURATION_NOT_FOUND: "The configuration is unavailable in this company.",
|
||
COMPANY_NOT_FOUND: "The company is unavailable.",
|
||
UNAUTHENTICATED: "Your session expired. Sign in again.",
|
||
FORBIDDEN: "Reload the page to authorize the operation.",
|
||
INTERNAL_ERROR: "Unable to complete the operation. Try again.",
|
||
},
|
||
};
|