diff --git a/modules/core/src/common/locales/es.json b/modules/core/src/common/locales/es.json index c0fee604..35a206e7 100644 --- a/modules/core/src/common/locales/es.json +++ b/modules/core/src/common/locales/es.json @@ -2,6 +2,7 @@ "common": { "cancel": "Cancelar", "save": "Guardar", + "saving": "Guardando...", "required": "•" }, "components": { diff --git a/modules/customers/src/common/locales/en.json b/modules/customers/src/common/locales/en.json index 9579c12c..ad244676 100644 --- a/modules/customers/src/common/locales/en.json +++ b/modules/customers/src/common/locales/en.json @@ -1,208 +1,305 @@ { "common": { - "more_details": "More details", - "back_to_list": "Back to the list", - "cancel": "Cancel", - "save": "Save", - "saving": "Saving...", - "validating_form": { - "title": "Check the fields", - "message": "There are validation errors in the form" - } - }, - "catalog": { - "status": { - "active": "active", - "inactive": "inactive" - } - }, - "pages": { - "title": "Customers", - "description": "Manage your customers", - "list": { - "title": "Customer list", - "description": "Manage your customers and their contact information", - "grid_columns": { - "customer": "Customer", - "status": "Status", - "contact": "Contact", - "address": "Address", - "actions": "Actions" - }, - "actions": { - "more": "More", - "view": "View", - "edit": "Edit customer", - "delete": "Delete customer", - "visit_website": "Visit website", - "copy_email": "Copy email" + "actions": { + "cancel": "Cancel", + "create": "Create customer", + "edit": "Edit", + "more": "More", + "save": "Save", + "saving": "Saving...", + "view": "View" + }, + "feedback": { + "validation": { + "message": "There are validation errors in the form.", + "title": "Check the fields" } }, - "create": { - "title": "New customer", - "description": "Create a new customer", - "error": { - "title": "Error creating", - "message": "The new customer could not be created" - } + "states": { + "active": "Active", + "inactive": "Inactive" + } + }, + "list": { + "actions": { + "copy_email": "Copy email", + "delete": "Delete customer", + "edit": "Edit customer", + "more": "More", + "view": "View" }, - "update": { - "title": "Update customer", - "description": "Update a customer", + "columns": { + "actions": "Actions", + "address": "Address", + "contact": "Contact", + "customer": "Customer" + }, + "description": "Manage your customers and their contact information.", + "errors": { + "load_message": "Please try again later.", + "load_title": "The customer list could not be loaded" + }, + "title": "Customers" + }, + "view": { + "actions": { + "edit": "Edit", + "open_menu": "More actions" + }, + "errors": { + "load_message": "Please try again later.", + "load_title": "The customer could not be loaded" + }, + "fields": { + "city": "City", + "country": "Country", + "currency_code": "Preferred currency", + "default_taxes": "Default taxes", + "email": "Email", + "fax": "Fax", + "language_code": "Preferred language", + "legal_record": "Legal record", + "mobile": "Mobile", + "name": "Name", + "phone": "Phone", + "postal_code": "Postal code", + "province": "Province", + "reference": "Reference", + "street": "Street", + "website": "Website" + }, + "sections": { + "address": "Address", + "basic_info": "Basic information", + "contact_info": "Contact information", + "other_contacts": "Other", + "preferences": "Preferences", + "primary_contact": "Primary contact", + "secondary_contact": "Secondary contact" + } + }, + "create": { + "description": "Create a new customer.", + "errors": { + "message": "The new customer could not be created.", + "title": "Error creating customer", + "unknown": "An unexpected error occurred." + }, + "feedback": { "success": { - "title": "Customer updated", - "message": "The customer has been successfully updated" + "message": "The customer has been created successfully.", + "title": "Customer created" } - } + }, + "title": "New customer" }, - "form_fields": { - "customer_type": { - "label": "This contact is...", - "description": "Select the type of customer", - "company": "a company", - "individual": "a person" + "update": { + "actions": { + "submit": "Save changes" }, - "name": { - "label": "Name", - "placeholder": "Enter customer name", - "description": "The full name of the customer" + "description": "Update a customer's data.", + "errors": { + "load_message": "Please try again later.", + "load_title": "The customer could not be loaded", + "message": "Review the data and try again.", + "missing_id": "The customer ID is missing.", + "not_found_message": "Check the identifier or return to the list.", + "not_found_title": "Customer not found", + "title": "The changes could not be saved", + "unexpected": "An unexpected error occurred." }, - "trade_name": { - "label": "Trade name", - "placeholder": "Enter trade name", - "description": "The trade name of the customer" + "feedback": { + "no_changes": { + "message": "You have not made any changes.", + "title": "No changes" + }, + "success": { + "message": "The customer has been updated successfully.", + "title": "Customer updated" + }, + "validation": { + "message": "There are validation errors. Fix the highlighted fields.", + "title": "Check the fields" + } }, - "tin": { - "label": "Tax Identification Number", - "placeholder": "Enter TIN", - "description": "The tax identification number of the customer" - }, - "reference": { - "label": "Reference", - "placeholder": "Enter reference", - "description": "A reference for the customer" - }, - "street": { - "label": "Street", - "placeholder": "Enter street", - "description": "The street address of the customer" - }, - "street2": { - "label": "Street 2", - "placeholder": "Enter street 2", - "description": "The street address of the customer" - }, - "city": { - "label": "City", - "placeholder": "Enter city", - "description": "The city of the customer" - }, - "postal_code": { - "label": "Postal code", - "placeholder": "Enter postal code", - "description": "The postal code of the customer" - }, - "province": { - "label": "Province", - "placeholder": "Enter province", - "description": "The province of the customer" - }, - "country": { - "label": "Country", - "placeholder": "Select country", - "description": "The country of the customer" - }, - "email_primary": { - "label": "Primary email", - "placeholder": "Enter primary email", - "description": "The primary email address of the customer" - }, - "email_secondary": { - "label": "Secondary email", - "placeholder": "Enter secondary email", - "description": "The secondary email address of the customer" - }, - "phone_primary": { - "label": "Primary phone", - "placeholder": "Enter primary phone number", - "description": "The primary phone number of the customer" - }, - "phone_secondary": { - "label": "Secondary phone", - "placeholder": "Enter secondary phone number ", - "description": "The secondary phone number of the customer" - }, - "mobile_primary": { - "label": "Primary mobile", - "placeholder": "Enter primary mobile number", - "description": "The primary mobile number of the customer" - }, - "mobile_secondary": { - "label": "Secondary mobile", - "placeholder": "Enter secondary mobile number", - "description": "The secondary mobile number of the customer" - }, - "fax": { - "label": "Fax", - "placeholder": "Enter fax number", - "description": "The fax number of the customer" - }, - "website": { - "label": "Website", - "placeholder": "Enter website URL", - "description": "The website of the customer" - }, - "default_taxes": { - "label": "Default taxes", - "placeholder": "Select default taxes", - "description": "The default tax rates for the customer" - }, - "language_code": { - "label": "Language", - "placeholder": "Select language", - "description": "The preferred language of the customer" - }, - "currency_code": { - "label": "Currency", - "placeholder": "Select currency", - "description": "The preferred currency of the customer" - }, - "legal_record": { - "label": "Legal record", - "placeholder": "Enter legal record", - "description": "The legal record of the customer" - } + "loading": "Loading customer...", + "title": "Edit customer" }, "form_groups": { - "basic_info": { - "title": "Basic information", - "description": "General customer details" - }, "address": { - "title": "Address", - "description": "Customer location" + "description": "Customer location.", + "title": "Address" + }, + "basic_info": { + "description": "General customer details.", + "title": "Basic information" }, "contact_info": { - "title": "Contact information", - "description": "Customer contact details" + "description": "Customer contact details.", + "title": "Contact information" }, "preferences": { - "title": "Preferences", - "description": "Additional customer configurations" + "description": "Additional customer settings.", + "title": "Preferences" } }, - "components": { - "entity_selector": { - "close": "Close", - "select_entity": "Select entity", - "create_new_entity": "Create new entity", - "search_entity": "Search entity", - "no_entities_found": "No results found for \"{{search}}\"", - "select_or_create": "Select an item from the list or create a new one.", - "create_label": "Create new item" + "fields": { + "city": { + "description": "The customer's city.", + "label": "City", + "placeholder": "Enter the city" }, + "country": { + "description": "The customer's country.", + "label": "Country", + "placeholder": "Select the country" + }, + "currency_code": { + "description": "The customer's preferred currency.", + "label": "Currency", + "placeholder": "Select the currency" + }, + "customer_type": { + "description": "Select the customer type.", + "label": "This customer is...", + "options": { + "company": "Company", + "individual": "Individual" + } + }, + "default_taxes": { + "description": "The customer's default taxes.", + "label": "Default taxes", + "placeholder": "Select the default taxes" + }, + "email_primary": { + "description": "The customer's primary email address.", + "label": "Primary email", + "placeholder": "Enter the email address" + }, + "email_secondary": { + "description": "The customer's secondary email address.", + "label": "Secondary email", + "placeholder": "Enter the email address" + }, + "fax": { + "description": "The customer's fax number.", + "label": "Fax", + "placeholder": "Enter the fax number" + }, + "language_code": { + "description": "The customer's preferred language.", + "label": "Language", + "placeholder": "Select the language" + }, + "legal_record": { + "description": "The customer's legal record.", + "label": "Legal record", + "placeholder": "Enter the legal record" + }, + "mobile_primary": { + "description": "The customer's primary mobile number.", + "label": "Primary mobile", + "placeholder": "Enter the mobile number" + }, + "mobile_secondary": { + "description": "The customer's secondary mobile number.", + "label": "Secondary mobile", + "placeholder": "Enter the secondary mobile number" + }, + "name": { + "description": "The customer's full name.", + "label": "Name", + "placeholder": "Enter the customer name" + }, + "phone_primary": { + "description": "The customer's primary phone number.", + "label": "Primary phone", + "placeholder": "Enter the phone number" + }, + "phone_secondary": { + "description": "The customer's secondary phone number.", + "label": "Secondary phone", + "placeholder": "Enter the secondary phone number" + }, + "postal_code": { + "description": "The customer's postal code.", + "label": "Postal code", + "placeholder": "Enter the postal code" + }, + "province": { + "description": "The customer's province.", + "label": "Province", + "placeholder": "Enter the province" + }, + "reference": { + "description": "An internal reference for the customer.", + "label": "Reference", + "placeholder": "Enter the reference" + }, + "street": { + "description": "The customer's main street address.", + "label": "Street", + "placeholder": "Enter the street" + }, + "street2": { + "description": "Additional address information for the customer.", + "label": "Street 2", + "placeholder": "Enter additional address information" + }, + "tin": { + "description": "The customer's tax identification number.", + "label": "Tax identification number", + "placeholder": "Enter the TIN" + }, + "trade_name": { + "description": "The customer's trade name.", + "label": "Trade name", + "placeholder": "Enter the trade name" + }, + "website": { + "description": "The customer's website.", + "label": "Website", + "placeholder": "Enter the website URL" + } + }, + "dialogs": { + "quick_create_customer": { + "actions": { + "submit": "Create customer" + }, + "title": "New customer" + } + }, + "toasts": { + "quick_create_customer": { + "error": { + "title": "Error creating customer" + }, + "success": { + "message": "The customer has been created successfully.", + "title": "Customer created" + } + } + }, + "errors": { + "unexpected": "An unexpected error occurred." + }, + "components": { "address_cell": { "open_in_google_maps": "Open address in Google Maps" + }, + "entity_selector": { + "close": "Close", + "create_label": "Create new item", + "create_new_entity": "Create new entity", + "no_entities_found": "No results found for \"{{search}}\"", + "search_entity": "Search entity", + "select_entity": "Select entity", + "select_or_create": "Select an item from the list or create a new one." + }, + "taxes_multi_select": { + "placeholder": "Select taxes" } } -} \ No newline at end of file +} diff --git a/modules/customers/src/common/locales/es.json b/modules/customers/src/common/locales/es.json index 4bc6c92b..6bc4e684 100644 --- a/modules/customers/src/common/locales/es.json +++ b/modules/customers/src/common/locales/es.json @@ -1,210 +1,305 @@ { "common": { - "more_details": "Más detalles", - "back_to_list": "Back to the list", - "cancel": "Cancelar", - "save": "Guardar", - "saving": "Guardando...", - "validating_form": { - "title": "Revisa los campos", - "message": "Hay errores de validación en el formulario" - } - }, - "catalog": { - "status": { - "active": "activo", - "inactive": "inactivo" - } - }, - "pages": { - "title": "Clientes", - "description": "Gestiona tus clientes", - "list": { - "title": "Lista de clientes", - "description": "Gestiona la información de tus clientes y sus datos de contacto", - "grid_columns": { - "customer": "Cliente", - "status": "Estado", - "contact": "Contacto", - "address": "Dirección", - "actions": "Acciones" - }, - "actions": { - "more": "Más", - "view": "Ver", - "edit": "Editar cliente", - "delete": "Eliminar cliente", - "visit_website": "Visitar sitio web", - "copy_email": "Copiar email" + "actions": { + "cancel": "Cancelar", + "create": "Crear cliente", + "edit": "Editar", + "more": "Más", + "save": "Guardar", + "saving": "Guardando...", + "view": "Ver" + }, + "feedback": { + "validation": { + "message": "Hay errores de validación en el formulario.", + "title": "Revisa los campos" } }, - "create": { - "title": "Nuevo cliente", - "description": "Crear un nuevo cliente", - "back_to_list": "Volver a la lista", - "error": { - "title": "Error al crear", - "message": "No se pudo crear el nuevo cliente" - } + "states": { + "active": "Activo", + "inactive": "Inactivo" + } + }, + "list": { + "actions": { + "copy_email": "Copiar email", + "delete": "Eliminar cliente", + "edit": "Editar cliente", + "more": "Más", + "view": "Ver" }, - "update": { - "title": "Modificación de cliente", - "description": "Modificar los datos de un cliente", - "back_to_list": "Back to the list", + "columns": { + "actions": "Acciones", + "address": "Dirección", + "contact": "Contacto", + "customer": "Cliente" + }, + "description": "Gestiona la información de tus clientes y sus datos de contacto.", + "errors": { + "load_message": "Inténtalo de nuevo más tarde.", + "load_title": "No se pudo cargar la lista de clientes" + }, + "title": "Clientes" + }, + "view": { + "actions": { + "edit": "Editar", + "open_menu": "Más acciones" + }, + "errors": { + "load_message": "Inténtalo de nuevo más tarde.", + "load_title": "No se pudo cargar el cliente" + }, + "fields": { + "city": "Ciudad", + "country": "País", + "currency_code": "Moneda preferida", + "default_taxes": "Impuestos por defecto", + "email": "Email", + "fax": "Fax", + "language_code": "Idioma preferido", + "legal_record": "Registro legal", + "mobile": "Móvil", + "name": "Nombre", + "phone": "Teléfono", + "postal_code": "Código postal", + "province": "Provincia", + "reference": "Referencia", + "street": "Calle", + "website": "Sitio web" + }, + "sections": { + "address": "Dirección", + "basic_info": "Información básica", + "contact_info": "Información de contacto", + "other_contacts": "Otros", + "preferences": "Preferencias", + "primary_contact": "Contacto principal", + "secondary_contact": "Contacto secundario" + } + }, + "create": { + "description": "Crear un nuevo cliente.", + "errors": { + "message": "No se pudo crear el nuevo cliente.", + "title": "Error al crear", + "unknown": "Ha ocurrido un error inesperado." + }, + "feedback": { "success": { - "title": "Cliente actualizado", - "message": "El cliente ha sido actualizado correctamente" + "message": "Se ha creado el cliente correctamente.", + "title": "Cliente creado" } - } + }, + "title": "Nuevo cliente" }, - "form_fields": { - "customer_type": { - "label": "Este cliente es...", - "description": "Seleccione el tipo de cliente", - "company": "Empresa", - "individual": "Particular" + "update": { + "actions": { + "submit": "Guardar cambios" }, - "name": { - "label": "Nombre", - "placeholder": "Ingrese el nombre del cliente", - "description": "El nombre completo del cliente" + "description": "Modificar los datos de un cliente.", + "errors": { + "load_message": "Inténtalo de nuevo más tarde.", + "load_title": "No se pudo cargar el cliente", + "message": "Revisa los datos e inténtalo de nuevo.", + "missing_id": "Falta el ID del cliente.", + "not_found_message": "Revisa el identificador o vuelve al listado.", + "not_found_title": "Cliente no encontrado", + "title": "No se pudo guardar los cambios", + "unexpected": "Ha ocurrido un error inesperado." }, - "trade_name": { - "label": "Nombre comercial", - "placeholder": "Ingrese el nombre comercial", - "description": "El nombre comercial del cliente" + "feedback": { + "no_changes": { + "message": "No has realizado ningún cambio.", + "title": "Sin cambios" + }, + "success": { + "message": "El cliente ha sido actualizado correctamente.", + "title": "Cliente actualizado" + }, + "validation": { + "message": "Hay errores de validación. Corrige los campos indicados.", + "title": "Revisa los campos" + } }, - "tin": { - "label": "Número de Identificación Fiscal", - "placeholder": "Ingrese el NIF", - "description": "El número de identificación fiscal del cliente" - }, - "reference": { - "label": "Referencia", - "placeholder": "Ingrese la referencia", - "description": "Una referencia interna para el cliente" - }, - "street": { - "label": "Calle", - "placeholder": "Ingrese la calle", - "description": "La dirección de la calle del cliente" - }, - "street2": { - "label": "Calle (ampliación)", - "placeholder": "Ingrese la calle", - "description": "La dirección de la calle del cliente" - }, - "city": { - "label": "Ciudad", - "placeholder": "Ingrese la ciudad", - "description": "La ciudad del cliente" - }, - "postal_code": { - "label": "Código postal", - "placeholder": "Ingrese el código postal", - "description": "El código postal del cliente" - }, - "province": { - "label": "Provincia", - "placeholder": "Ingrese la provincia", - "description": "La provincia del cliente" - }, - "country": { - "label": "País", - "placeholder": "Seleccione el país", - "description": "El país del cliente" - }, - "email_primary": { - "label": "Email principal", - "placeholder": "Ingrese el correo electrónico", - "description": "La dirección de correo electrónico principal del cliente" - }, - "email_secondary": { - "label": "Email secundario", - "placeholder": "Ingrese el correo electrónico", - "description": "La dirección de correo electrónico secundario del cliente" - }, - "phone_primary": { - "label": "Teléfono", - "placeholder": "Ingrese el número de teléfono", - "description": "El número de teléfono del cliente" - }, - "phone_secondary": { - "label": "Teléfono secundario", - "placeholder": "Ingrese el número de teléfono secundario", - "description": "El número de teléfono secundario del cliente" - }, - "mobile_primary": { - "label": "Teléfono", - "placeholder": "Ingrese el número de teléfono", - "description": "El número de teléfono del cliente" - }, - "mobile_secondary": { - "label": "Teléfono secundario", - "placeholder": "Ingrese el número de teléfono secundario", - "description": "El número de teléfono secundario del cliente" - }, - "fax": { - "label": "Fax", - "placeholder": "Ingrese el número de fax", - "description": "El número de fax del cliente" - }, - "website": { - "label": "Sitio web", - "placeholder": "Ingrese la URL del sitio web", - "description": "El sitio web del cliente" - }, - "default_taxes": { - "label": "Impuesto por defecto", - "placeholder": "Seleccione el impuesto por defecto", - "description": "La tasa de impuesto por defecto para el cliente" - }, - "language_code": { - "label": "Idioma", - "placeholder": "Seleccione el idioma", - "description": "El idioma preferido del cliente" - }, - "currency_code": { - "label": "Moneda", - "placeholder": "Seleccione la moneda", - "description": "La moneda preferida del cliente" - }, - "legal_record": { - "label": "Registro legal", - "placeholder": "Ingrese el registro legal", - "description": "El registro legal del cliente" - } + "loading": "Cargando cliente...", + "title": "Modificación de cliente" }, "form_groups": { - "basic_info": { - "title": "Información básica", - "description": "Detalles generales del cliente" - }, "address": { - "title": "Dirección", - "description": "Ubicación del cliente" + "description": "Ubicación del cliente.", + "title": "Dirección" + }, + "basic_info": { + "description": "Detalles generales del cliente.", + "title": "Información básica" }, "contact_info": { - "title": "Información de contacto", - "description": "Detalles de contacto del cliente" + "description": "Detalles de contacto del cliente.", + "title": "Información de contacto" }, "preferences": { - "title": "Preferencias", - "description": "Configuraciones adicionales del cliente" + "description": "Configuraciones adicionales del cliente.", + "title": "Preferencias" } }, - "components": { - "entity_selector": { - "close": "Cerrar", - "select_entity": "Seleccionar entidad", - "create_new_entity": "Crear nueva entidad", - "search_entity": "Buscar entidad", - "no_entities_found": "No se encontraron resultados para \"{{search}}\"", - "select_or_create": "Seleccione un elemento de la lista o cree uno nuevo.", - "create_label": "Crear nuevo elemento" + "fields": { + "city": { + "description": "La ciudad del cliente.", + "label": "Ciudad", + "placeholder": "Introduce la ciudad" }, + "country": { + "description": "El país del cliente.", + "label": "País", + "placeholder": "Selecciona el país" + }, + "currency_code": { + "description": "La moneda preferida del cliente.", + "label": "Moneda", + "placeholder": "Selecciona la moneda" + }, + "customer_type": { + "description": "Selecciona el tipo de cliente.", + "label": "Este cliente es...", + "options": { + "company": "Empresa", + "individual": "Particular" + } + }, + "default_taxes": { + "description": "Los impuestos predeterminados del cliente.", + "label": "Impuestos por defecto", + "placeholder": "Selecciona los impuestos por defecto" + }, + "email_primary": { + "description": "La dirección de correo electrónico principal del cliente.", + "label": "Email principal", + "placeholder": "Introduce el correo electrónico" + }, + "email_secondary": { + "description": "La dirección de correo electrónico secundaria del cliente.", + "label": "Email secundario", + "placeholder": "Introduce el correo electrónico" + }, + "fax": { + "description": "El número de fax del cliente.", + "label": "Fax", + "placeholder": "Introduce el número de fax" + }, + "language_code": { + "description": "El idioma preferido del cliente.", + "label": "Idioma", + "placeholder": "Selecciona el idioma" + }, + "legal_record": { + "description": "El registro legal del cliente.", + "label": "Registro legal", + "placeholder": "Introduce el registro legal" + }, + "mobile_primary": { + "description": "El número de móvil principal del cliente.", + "label": "Móvil principal", + "placeholder": "Introduce el número de móvil" + }, + "mobile_secondary": { + "description": "El número de móvil secundario del cliente.", + "label": "Móvil secundario", + "placeholder": "Introduce el número de móvil secundario" + }, + "name": { + "description": "El nombre completo del cliente.", + "label": "Nombre", + "placeholder": "Introduce el nombre del cliente" + }, + "phone_primary": { + "description": "El número de teléfono principal del cliente.", + "label": "Teléfono principal", + "placeholder": "Introduce el número de teléfono" + }, + "phone_secondary": { + "description": "El número de teléfono secundario del cliente.", + "label": "Teléfono secundario", + "placeholder": "Introduce el número de teléfono secundario" + }, + "postal_code": { + "description": "El código postal del cliente.", + "label": "Código postal", + "placeholder": "Introduce el código postal" + }, + "province": { + "description": "La provincia del cliente.", + "label": "Provincia", + "placeholder": "Introduce la provincia" + }, + "reference": { + "description": "Una referencia interna para el cliente.", + "label": "Referencia", + "placeholder": "Introduce la referencia" + }, + "street": { + "description": "La dirección principal del cliente.", + "label": "Calle", + "placeholder": "Introduce la calle" + }, + "street2": { + "description": "Información adicional de la dirección del cliente.", + "label": "Calle (ampliación)", + "placeholder": "Introduce información adicional de la dirección" + }, + "tin": { + "description": "El número de identificación fiscal del cliente.", + "label": "Número de identificación fiscal", + "placeholder": "Introduce el NIF" + }, + "trade_name": { + "description": "El nombre comercial del cliente.", + "label": "Nombre comercial", + "placeholder": "Introduce el nombre comercial" + }, + "website": { + "description": "El sitio web del cliente.", + "label": "Sitio web", + "placeholder": "Introduce la URL del sitio web" + } + }, + "dialogs": { + "quick_create_customer": { + "actions": { + "submit": "Crear cliente" + }, + "title": "Nuevo cliente" + } + }, + "toasts": { + "quick_create_customer": { + "error": { + "title": "Error al crear cliente" + }, + "success": { + "message": "Se ha creado correctamente.", + "title": "Cliente creado" + } + } + }, + "errors": { + "unexpected": "Ha ocurrido un error inesperado." + }, + "components": { "address_cell": { "open_in_google_maps": "Abrir dirección en Google Maps" + }, + "entity_selector": { + "close": "Cerrar", + "create_label": "Crear nuevo elemento", + "create_new_entity": "Crear nueva entidad", + "no_entities_found": "No se encontraron resultados para \"{{search}}\"", + "search_entity": "Buscar entidad", + "select_entity": "Seleccionar entidad", + "select_or_create": "Selecciona un elemento de la lista o crea uno nuevo." + }, + "taxes_multi_select": { + "placeholder": "Selecciona los impuestos" } } -} \ No newline at end of file +} diff --git a/modules/customers/src/web/create/controllers/use-customer-create.controller.ts b/modules/customers/src/web/create/controllers/use-customer-create.controller.ts index dafe14b6..4a3fec8d 100644 --- a/modules/customers/src/web/create/controllers/use-customer-create.controller.ts +++ b/modules/customers/src/web/create/controllers/use-customer-create.controller.ts @@ -56,17 +56,17 @@ export const useCustomerCreateController = (options?: UseCustomerCreateControlle if (options?.successToasts !== false) { showSuccessToast( - t("pages.create.success.title", "Cliente creado"), - t("pages.create.success.message", "Se ha creado el cliente correctamente.") + t("create.feedback.success.title"), + t("create.feedback.success.message") ); } options?.onCreated?.(created); } catch (error: unknown) { const normalizedError = - error instanceof Error ? error : new Error(t("pages.create.error.unknown")); + error instanceof Error ? error : new Error(t("create.errors.unknown")); if (options?.errorToasts !== false) { - showErrorToast(t("pages.create.error.title"), normalizedError.message); + showErrorToast(t("create.errors.title"), normalizedError.message); } options?.onError?.(normalizedError, params); @@ -80,8 +80,8 @@ export const useCustomerCreateController = (options?: UseCustomerCreateControlle } showWarningToast( - t("forms.validation.title", "Revisa los campos"), - t("forms.validation.message", "Hay errores de validación en el formulario.") + t("common.feedback.validation.title"), + t("common.feedback.validation.message") ); } ); diff --git a/modules/customers/src/web/create/ui/editor/customer-additional-config-fields.tsx b/modules/customers/src/web/create/ui/editor/customer-additional-config-fields.tsx index daaab3f1..8ad33bbd 100644 --- a/modules/customers/src/web/create/ui/editor/customer-additional-config-fields.tsx +++ b/modules/customers/src/web/create/ui/editor/customer-additional-config-fields.tsx @@ -28,22 +28,22 @@ export const CustomerAdditionalConfigFields = ({ diff --git a/modules/customers/src/web/create/ui/editor/customer-address-fields.tsx b/modules/customers/src/web/create/ui/editor/customer-address-fields.tsx index 6f27d192..b44fdb39 100644 --- a/modules/customers/src/web/create/ui/editor/customer-address-fields.tsx +++ b/modules/customers/src/web/create/ui/editor/customer-address-fields.tsx @@ -25,48 +25,48 @@ export const CustomerAddressFields = ({ className, ...props }: CustomerAddressFi diff --git a/modules/customers/src/web/create/ui/editor/customer-basic-info-fields.tsx b/modules/customers/src/web/create/ui/editor/customer-basic-info-fields.tsx index 1e603364..ea697df0 100644 --- a/modules/customers/src/web/create/ui/editor/customer-basic-info-fields.tsx +++ b/modules/customers/src/web/create/ui/editor/customer-basic-info-fields.tsx @@ -37,10 +37,10 @@ export const CustomerBasicInfoFields = ({ className, ...props }: CustomerBasicIn @@ -53,7 +53,7 @@ export const CustomerBasicInfoFields = ({ className, ...props }: CustomerBasicIn className="gap-1 lg:col-span-1 lg:col-start-1" data-invalid={fieldState.invalid} > - {t("form_fields.customer_type.label")} + {t("fields.customer_type.label")} - {t("form_fields.customer_type.company")} + {t("fields.customer_type.options.company")} @@ -92,13 +92,13 @@ export const CustomerBasicInfoFields = ({ className, ...props }: CustomerBasicIn className="cursor-pointer text-sm font-medium leading-none" htmlFor="customer-type-individual" > - {t("form_fields.customer_type.individual")} + {t("fields.customer_type.options.individual")} - {t("form_fields.customer_type.description")} + {t("fields.customer_type.description")} ); @@ -107,27 +107,27 @@ export const CustomerBasicInfoFields = ({ className, ...props }: CustomerBasicIn @@ -137,19 +137,19 @@ export const CustomerBasicInfoFields = ({ className, ...props }: CustomerBasicIn render={({ field, fieldState }) => ( - {t("form_fields.default_taxes.label")} + {t("fields.default_taxes.label")} - {t("form_fields.default_taxes.description")} + {t("fields.default_taxes.description")} )} @@ -158,10 +158,10 @@ export const CustomerBasicInfoFields = ({ className, ...props }: CustomerBasicIn diff --git a/modules/customers/src/web/create/ui/editor/customer-contact-fields.tsx b/modules/customers/src/web/create/ui/editor/customer-contact-fields.tsx index a477ce23..f0d3f165 100644 --- a/modules/customers/src/web/create/ui/editor/customer-contact-fields.tsx +++ b/modules/customers/src/web/create/ui/editor/customer-contact-fields.tsx @@ -30,21 +30,21 @@ export const CustomerContactFields = ({ className, ...props }: CustomerContactFi } name="primaryEmail" - placeholder={t("form_fields.email_primary.placeholder")} + placeholder={t("fields.email_primary.placeholder")} required typePreset="email" /> } name="primaryMobile" - placeholder={t("form_fields.mobile_primary.placeholder")} + placeholder={t("fields.mobile_primary.placeholder")} typePreset="phone" /> } name="primaryPhone" - placeholder={t("form_fields.phone_primary.placeholder")} + placeholder={t("fields.phone_primary.placeholder")} typePreset="phone" /> @@ -72,20 +72,20 @@ export const CustomerContactFields = ({ className, ...props }: CustomerContactFi } name="secondaryEmail" - placeholder={t("form_fields.email_secondary.placeholder")} + placeholder={t("fields.email_secondary.placeholder")} typePreset="email" /> } name="secondaryMobile" - placeholder={t("form_fields.mobile_secondary.placeholder")} + placeholder={t("fields.mobile_secondary.placeholder")} typePreset="phone" /> } name="secondaryPhone" - placeholder={t("form_fields.phone_secondary.placeholder")} + placeholder={t("fields.phone_secondary.placeholder")} typePreset="phone" /> @@ -116,7 +116,7 @@ export const CustomerContactFields = ({ className, ...props }: CustomerContactFi open={open} > - {t("common.more_details")}{" "} + {t("common.actions.more")}{" "} @@ -124,8 +124,8 @@ export const CustomerContactFields = ({ className, ...props }: CustomerContactFi } name="website" - placeholder={t("form_fields.website.placeholder")} + placeholder={t("fields.website.placeholder")} typePreset="text" /> diff --git a/modules/customers/src/web/create/ui/editor/customer-taxes-multi-select.tsx b/modules/customers/src/web/create/ui/editor/customer-taxes-multi-select.tsx index 7c476b2f..3e747e38 100644 --- a/modules/customers/src/web/create/ui/editor/customer-taxes-multi-select.tsx +++ b/modules/customers/src/web/create/ui/editor/customer-taxes-multi-select.tsx @@ -55,7 +55,7 @@ export const CustomerTaxesMultiSelect = ({ maxCount={3} onValueChange={onChange} options={catalogLookup} - placeholder={t("components.customer_invoice_taxes_multi_select.placeholder")} + placeholder={t("components.taxes_multi_select.placeholder")} value={value ?? []} variant="secondary" {...otherProps} diff --git a/modules/customers/src/web/create/ui/pages/customer-create-page.tsx b/modules/customers/src/web/create/ui/pages/customer-create-page.tsx index 2d02a4f5..bbe430ed 100644 --- a/modules/customers/src/web/create/ui/pages/customer-create-page.tsx +++ b/modules/customers/src/web/create/ui/pages/customer-create-page.tsx @@ -21,7 +21,7 @@ export const CustomerCreatePage = () => { navigate("/customers/list")} rightSlot={ /* @@ -38,15 +38,15 @@ export const CustomerCreatePage = () => { /> */ <> } - title={t("pages.create.title")} + title={t("create.title")} /> {isCreateError && ( )} diff --git a/modules/customers/src/web/features/quick-create-customer/controllers/use-quick-create-customer-dialog-controller.ts b/modules/customers/src/web/features/quick-create-customer/controllers/use-quick-create-customer-dialog-controller.ts index bbc08daf..b79ff4df 100644 --- a/modules/customers/src/web/features/quick-create-customer/controllers/use-quick-create-customer-dialog-controller.ts +++ b/modules/customers/src/web/features/quick-create-customer/controllers/use-quick-create-customer-dialog-controller.ts @@ -51,8 +51,8 @@ export const useQuickCreateCustomerDialogController = ( options.onCreated(option); showSuccessToast( - t("customers.quick_create.success.title", "Cliente creado"), - t("customers.quick_create.success.message", "Se ha creado correctamente") + t("toasts.quick_create_customer.success.title"), + t("toasts.quick_create_customer.success.message") ); form.reset( @@ -67,7 +67,7 @@ export const useQuickCreateCustomerDialogController = ( const err = error instanceof Error ? error : new Error("Unknown error"); showErrorToast( - t("customers.quick_create.error.title", "Error al crear cliente"), + t("toasts.quick_create_customer.error.title"), err.message ); } diff --git a/modules/customers/src/web/features/quick-create-customer/ui/dialogs/quick-create-customer-dialog.tsx b/modules/customers/src/web/features/quick-create-customer/ui/dialogs/quick-create-customer-dialog.tsx index 0a556d3b..74b21ed2 100644 --- a/modules/customers/src/web/features/quick-create-customer/ui/dialogs/quick-create-customer-dialog.tsx +++ b/modules/customers/src/web/features/quick-create-customer/ui/dialogs/quick-create-customer-dialog.tsx @@ -29,7 +29,7 @@ export const QuickCreateCustomerDialog = ({ ctrl }: QuickCreateCustomerDialogPro !open && ctrl.closeDialog()} open={ctrl.isOpen}> - {t("customers.quick_create.title", "Nuevo cliente")} + {t("dialogs.quick_create_customer.title")} @@ -43,13 +43,13 @@ export const QuickCreateCustomerDialog = ({ ctrl }: QuickCreateCustomerDialogPro type="button" variant="outline" > - {t("common.cancel", "Cancelar")} + {t("common.actions.cancel")} diff --git a/modules/customers/src/web/list/ui/blocks/customers-grid/use-customer-grid-columns.tsx b/modules/customers/src/web/list/ui/blocks/customers-grid/use-customer-grid-columns.tsx index 1e32da7b..03e81cbf 100644 --- a/modules/customers/src/web/list/ui/blocks/customers-grid/use-customer-grid-columns.tsx +++ b/modules/customers/src/web/list/ui/blocks/customers-grid/use-customer-grid-columns.tsx @@ -39,7 +39,7 @@ export function useCustomersGridColumns( ), accessorFn: (row) => row.name, @@ -74,12 +74,12 @@ export function useCustomersGridColumns( {customer.isCompany ? ( <> - {t("form_fields.customer_type.company")} + {t("fields.customer_type.options.company")} ) : ( <> - {t("form_fields.customer_type.individual")} + {t("fields.customer_type.options.individual")} )} @@ -96,7 +96,7 @@ export function useCustomersGridColumns( ), accessorFn: (row) => @@ -112,7 +112,7 @@ export function useCustomersGridColumns( ), accessorFn: (row) => @@ -128,7 +128,7 @@ export function useCustomersGridColumns( ), size: 64, @@ -143,7 +143,7 @@ export function useCustomersGridColumns(
} @@ -162,16 +162,16 @@ export function useCustomersGridColumns( - {t("pages.list.grid_columns.actions")} + {t("list.columns.actions")} onViewClick?.(customer)}> - {t("pages.list.actions.view")} + {t("list.actions.view")} onEditClick?.(customer)}> - {t("pages.list.actions.edit")} + {t("list.actions.edit")} @@ -182,7 +182,7 @@ export function useCustomersGridColumns( disabled={!primaryEmail} onClick={() => navigator.clipboard.writeText(primaryEmail)} > - {t("pages.list.actions.copy_email")} + {t("list.actions.copy_email")} @@ -192,7 +192,7 @@ export function useCustomersGridColumns( className="text-destructive" onClick={() => onDeleteClick?.(customer)} > - {t("pages.list.actions.delete")} + {t("list.actions.delete")} diff --git a/modules/customers/src/web/list/ui/pages/list-customers-page.tsx b/modules/customers/src/web/list/ui/pages/list-customers-page.tsx index 0688512b..fd0aac29 100644 --- a/modules/customers/src/web/list/ui/pages/list-customers-page.tsx +++ b/modules/customers/src/web/list/ui/pages/list-customers-page.tsx @@ -86,8 +86,8 @@ export const ListCustomersPage = () => { return ( @@ -98,18 +98,18 @@ export const ListCustomersPage = () => {
{/* Header */} navigate("/proformas/create")} + aria-label={t("common.actions.create")} + onClick={() => navigate("/customers/create")} size={"default"} > - {t("pages.proformas.create.title")} + {t("common.actions.create")} } - title={t("pages.proformas.list.title")} + title={t("list.title")} /> {/* Table */} diff --git a/modules/customers/src/web/update/controllers/use-customer-update.controller.ts b/modules/customers/src/web/update/controllers/use-customer-update.controller.ts index 8624d998..bcd2e84e 100644 --- a/modules/customers/src/web/update/controllers/use-customer-update.controller.ts +++ b/modules/customers/src/web/update/controllers/use-customer-update.controller.ts @@ -105,14 +105,14 @@ export const useCustomerUpdateController = ( const submitHandler = form.handleSubmit( async (formData: CustomerUpdateForm) => { if (!customerId) { - showErrorToast(t("pages.update.error.title"), "Falta el ID del cliente"); + showErrorToast(t("update.errors.title"), t("update.errors.missing_id")); return; } if (!formHasAnyDirty(form.formState.dirtyFields)) { showWarningToast( - t("customers.update.no_changes.title"), - t("customers.update.no_changes.message") + t("update.feedback.no_changes.title"), + t("update.feedback.no_changes.message") ); return; } @@ -123,8 +123,8 @@ export const useCustomerUpdateController = ( if (Object.keys(patchData).length === 0) { showWarningToast( - t("pages.update.no_changes.title", "Sin cambios"), - t("pages.update.no_changes.message", "No has realizado ningún cambio.") + t("update.feedback.no_changes.title"), + t("update.feedback.no_changes.message") ); return; } @@ -147,8 +147,8 @@ export const useCustomerUpdateController = ( if (options?.successToasts !== false) { showSuccessToast( - t("pages.update.success.title", "Cliente modificado"), - t("pages.update.success.message", "Se ha modificado correctamente.") + t("update.feedback.success.title"), + t("update.feedback.success.message") ); } @@ -172,11 +172,8 @@ export const useCustomerUpdateController = ( if (options?.errorToasts !== false) { showWarningToast( - t("pages.update.validation_error.title", "Revisa los campos"), - t( - "pages.update.validation_error.message", - "Hay errores de validación. Corrige los campos indicados." - ) + t("update.feedback.validation.title"), + t("update.feedback.validation.message") ); } @@ -186,9 +183,8 @@ export const useCustomerUpdateController = ( if (options?.errorToasts !== false) { showErrorToast( - t("pages.update.error.title", "No se pudo modificar el cliente"), - normalizedError.message || - t("common.errors.unexpected", "Ha ocurrido un error inesperado.") + t("update.errors.title"), + normalizedError.message || t("update.errors.unexpected") ); } @@ -199,8 +195,8 @@ export const useCustomerUpdateController = ( focusFirstInputFormError(form); showWarningToast( - t("forms.validation.title", "Revisa los campos"), - t("forms.validation.message", "Hay errores de validación en el formulario.") + t("common.feedback.validation.title"), + t("common.feedback.validation.message") ); } ); diff --git a/modules/customers/src/web/update/ui/components/customer-editor-skeleton.tsx b/modules/customers/src/web/update/ui/components/customer-editor-skeleton.tsx index fd6349b2..2e2320e9 100644 --- a/modules/customers/src/web/update/ui/components/customer-editor-skeleton.tsx +++ b/modules/customers/src/web/update/ui/components/customer-editor-skeleton.tsx @@ -16,7 +16,7 @@ export const CustomerEditorSkeleton = () => {
@@ -25,7 +25,7 @@ export const CustomerEditorSkeleton = () => {
- {t("pages.update.loading", "Cargando cliente...")} + {t("update.loading")} ); diff --git a/modules/customers/src/web/update/ui/editor/customer-additional-config-fields.tsx b/modules/customers/src/web/update/ui/editor/customer-additional-config-fields.tsx index 6b768ec3..ea37c4d5 100644 --- a/modules/customers/src/web/update/ui/editor/customer-additional-config-fields.tsx +++ b/modules/customers/src/web/update/ui/editor/customer-additional-config-fields.tsx @@ -22,23 +22,23 @@ export const CustomerAdditionalConfigEditor = ({ diff --git a/modules/customers/src/web/update/ui/editor/customer-address-editor.tsx b/modules/customers/src/web/update/ui/editor/customer-address-editor.tsx index e14ec976..680ed02a 100644 --- a/modules/customers/src/web/update/ui/editor/customer-address-editor.tsx +++ b/modules/customers/src/web/update/ui/editor/customer-address-editor.tsx @@ -16,67 +16,67 @@ export const CustomerAddressEditor = ({ return ( diff --git a/modules/customers/src/web/update/ui/editor/customer-basic-info-editor.tsx b/modules/customers/src/web/update/ui/editor/customer-basic-info-editor.tsx index 11a33ba0..c75d201a 100644 --- a/modules/customers/src/web/update/ui/editor/customer-basic-info-editor.tsx +++ b/modules/customers/src/web/update/ui/editor/customer-basic-info-editor.tsx @@ -40,11 +40,11 @@ export const CustomerBasicInfoEditor = ({ @@ -55,7 +55,7 @@ export const CustomerBasicInfoEditor = ({ render={({ field, fieldState }) => { return ( - {t("form_fields.customer_type.label")} + {t("fields.customer_type.label")} - {t("form_fields.customer_type.company")} + {t("fields.customer_type.options.company")} @@ -94,13 +94,13 @@ export const CustomerBasicInfoEditor = ({ className="cursor-pointer text-sm font-medium leading-none" htmlFor="customer-type-individual" > - {t("form_fields.customer_type.individual")} + {t("fields.customer_type.options.individual")} - {t("form_fields.customer_type.description")} + {t("fields.customer_type.description")} ); @@ -109,32 +109,32 @@ export const CustomerBasicInfoEditor = ({ @@ -145,19 +145,19 @@ export const CustomerBasicInfoEditor = ({ render={({ field, fieldState }) => ( - {t("form_fields.default_taxes.label")} + {t("fields.default_taxes.label")} - {t("form_fields.default_taxes.description")} + {t("fields.default_taxes.description")} )} @@ -166,11 +166,11 @@ export const CustomerBasicInfoEditor = ({ diff --git a/modules/customers/src/web/update/ui/editor/customer-contact-fields.tsx b/modules/customers/src/web/update/ui/editor/customer-contact-fields.tsx index d576f8bc..d57eb988 100644 --- a/modules/customers/src/web/update/ui/editor/customer-contact-fields.tsx +++ b/modules/customers/src/web/update/ui/editor/customer-contact-fields.tsx @@ -24,42 +24,42 @@ export const CustomerContactEditor = ({ return ( } name="primaryEmail" - placeholder={t("form_fields.email_primary.placeholder")} + placeholder={t("fields.email_primary.placeholder")} readOnly={readOnly} typePreset="email" /> } name="primaryMobile" - placeholder={t("form_fields.mobile_primary.placeholder")} + placeholder={t("fields.mobile_primary.placeholder")} readOnly={readOnly} typePreset="phone" /> } name="primaryPhone" - placeholder={t("form_fields.phone_primary.placeholder")} + placeholder={t("fields.phone_primary.placeholder")} readOnly={readOnly} typePreset="phone" /> @@ -68,35 +68,35 @@ export const CustomerContactEditor = ({ } name="secondaryEmail" - placeholder={t("form_fields.email_secondary.placeholder")} + placeholder={t("fields.email_secondary.placeholder")} readOnly={readOnly} typePreset="email" /> } name="secondaryMobile" - placeholder={t("form_fields.mobile_secondary.placeholder")} + placeholder={t("fields.mobile_secondary.placeholder")} readOnly={readOnly} typePreset="phone" /> } name="secondaryPhone" - placeholder={t("form_fields.phone_secondary.placeholder")} + placeholder={t("fields.phone_secondary.placeholder")} readOnly={readOnly} typePreset="phone" /> @@ -109,29 +109,29 @@ export const CustomerContactEditor = ({ open={open} > - {t("common.more_details")}{" "} + {t("common.actions.more")}{" "} } name="website" - placeholder={t("form_fields.website.placeholder")} + placeholder={t("fields.website.placeholder")} readOnly={readOnly} typePreset="text" /> diff --git a/modules/customers/src/web/update/ui/editor/customer-taxes-multi-select.tsx b/modules/customers/src/web/update/ui/editor/customer-taxes-multi-select.tsx index 7c476b2f..3e747e38 100644 --- a/modules/customers/src/web/update/ui/editor/customer-taxes-multi-select.tsx +++ b/modules/customers/src/web/update/ui/editor/customer-taxes-multi-select.tsx @@ -55,7 +55,7 @@ export const CustomerTaxesMultiSelect = ({ maxCount={3} onValueChange={onChange} options={catalogLookup} - placeholder={t("components.customer_invoice_taxes_multi_select.placeholder")} + placeholder={t("components.taxes_multi_select.placeholder")} value={value ?? []} variant="secondary" {...otherProps} diff --git a/modules/customers/src/web/update/ui/pages/customer-update-page.tsx b/modules/customers/src/web/update/ui/pages/customer-update-page.tsx index ed51ff18..974da451 100644 --- a/modules/customers/src/web/update/ui/pages/customer-update-page.tsx +++ b/modules/customers/src/web/update/ui/pages/customer-update-page.tsx @@ -26,9 +26,9 @@ export const CustomerUpdatePage = () => { message={ updateCtrl.loadError instanceof Error ? updateCtrl.loadError.message - : t("pages.update.loadErrorMsg", "Inténtalo de nuevo más tarde.") + : t("update.errors.load_message") } - title={t("pages.update.loadErrorTitle", "No se pudo cargar el cliente")} + title={t("update.errors.load_title")} />
@@ -42,8 +42,8 @@ export const CustomerUpdatePage = () => { return ( ); @@ -53,7 +53,7 @@ export const CustomerUpdatePage = () => { navigate("/customers/list")} rightSlot={ /* @@ -70,7 +70,7 @@ export const CustomerUpdatePage = () => { /> */ <> } - title={t("pages.update.title")} + title={t("update.title")} /> @@ -79,9 +79,9 @@ export const CustomerUpdatePage = () => { )} diff --git a/modules/customers/src/web/view/ui/pages/customer-view-page.tsx b/modules/customers/src/web/view/ui/pages/customer-view-page.tsx index e0e35e80..1d13365f 100644 --- a/modules/customers/src/web/view/ui/pages/customer-view-page.tsx +++ b/modules/customers/src/web/view/ui/pages/customer-view-page.tsx @@ -54,9 +54,9 @@ export const CustomerViewPage = () => {
@@ -77,7 +77,11 @@ export const CustomerViewPage = () => { {customerData?.tin} - {customerData?.isCompany ? "Empresa" : "Persona"} + + {customerData?.isCompany + ? t("fields.customer_type.options.company") + : t("fields.customer_type.options.individual")} +
} rightSlot={ @@ -95,7 +99,7 @@ export const CustomerViewPage = () => { onClick={() => navigate(`/customers/${customerId}/edit`)} > - Editar + {t("view.actions.edit")}
} @@ -117,26 +121,34 @@ export const CustomerViewPage = () => { - Información Básica + {t("view.sections.basic_info")}
-
Nombre
+
+ {t("view.fields.name")} +
{customerData?.name}
-
Referencia
+
+ {t("view.fields.reference")} +
{customerData?.reference}
-
Registro Legal
+
+ {t("view.fields.legal_record")} +
{customerData?.legalRecord}
-
Impuestos por Defecto
+
+ {t("view.fields.default_taxes")} +
{customerData?.defaultTaxes.map((tax: string) => ( @@ -153,12 +165,14 @@ export const CustomerViewPage = () => { - Dirección + {t("view.sections.address")}
-
Calle
+
+ {t("view.fields.street")} +
{customerData?.street} {customerData?.street2 && ( @@ -171,21 +185,29 @@ export const CustomerViewPage = () => {
-
Ciudad
+
+ {t("view.fields.city")} +
{customerData?.city}
-
Código Postal
+
+ {t("view.fields.postal_code")} +
{customerData?.postalCode}
-
Provincia
+
+ {t("view.fields.province")} +
{customerData?.province}
-
País
+
+ {t("view.fields.country")} +
{customerData?.country}
@@ -197,19 +219,23 @@ export const CustomerViewPage = () => { - Información de Contacto + {t("view.sections.contact_info")}
{/* Contacto Principal */}
-

Contacto Principal

+

+ {t("view.sections.primary_contact")} +

{customerData?.primaryEmail && (
-
Email
+
+ {t("view.fields.email")} +
{customerData?.primaryEmail}
@@ -220,7 +246,9 @@ export const CustomerViewPage = () => {
-
Móvil
+
+ {t("view.fields.mobile")} +
{customerData?.primaryMobile}
@@ -231,7 +259,9 @@ export const CustomerViewPage = () => {
-
Teléfono
+
+ {t("view.fields.phone")} +
{customerData?.primaryPhone}
@@ -242,12 +272,16 @@ export const CustomerViewPage = () => { {/* Contacto Secundario */}
-

Contacto Secundario

+

+ {t("view.sections.secondary_contact")} +

{customerData?.secondaryEmail && (
-
Email
+
+ {t("view.fields.email")} +
{customerData?.secondaryEmail}
@@ -258,7 +292,9 @@ export const CustomerViewPage = () => {
-
Móvil
+
+ {t("view.fields.mobile")} +
{customerData?.secondaryMobile}
@@ -269,7 +305,9 @@ export const CustomerViewPage = () => {
-
Teléfono
+
+ {t("view.fields.phone")} +
{customerData?.secondaryPhone}
@@ -281,13 +319,17 @@ export const CustomerViewPage = () => { {/* Otros Contactos */} {(customerData?.website || customerData?.fax) && (