From 9b55f97df040361131905878c6c1d300054cbf0e Mon Sep 17 00:00:00 2001 From: hreyes Date: Fri, 24 Apr 2026 13:56:44 -0600 Subject: [PATCH] fix/traduccion-bitacora --- frontend/messages/en.json | 20 ++++++++++- frontend/messages/es.json | 20 ++++++++++- .../src/lib/components/sidebar/modules.ts | 24 ++++++------- frontend/src/lib/utils/audit-log-i18n.ts | 36 +++++++++++++++++-- 4 files changed, 83 insertions(+), 17 deletions(-) diff --git a/frontend/messages/en.json b/frontend/messages/en.json index d6ee1686..b378512b 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -2,6 +2,7 @@ "$schema": "https://inlang.com/schema/inlang-message-format", "hello_world": "Hello, {name} from en!", "sidebar": { + "dashboard": "Dashboard", "reference_data": { "title": "Fixed Catalogs", "codes_pedimento_regimen": "Pedimento and Regime Codes", @@ -62,7 +63,8 @@ "prevalidators": "Prevalidators", "electronic_notices": "Electronic Notices", "back_flush": "Back Flush", - "crossing_notice": "Crossing Notice" + "crossing_notice": "Crossing Notice", + "customs_broker_concepts": "Customs Broker Concepts" }, "fractions": { "title": "Fractions", @@ -185,6 +187,22 @@ "profile": "Profile", "settings": "Settings", "logout": "Logout" + }, + "transports": { + "title": "Transportation", + "transporters": "Carriers", + "drivers": "Drivers", + "trailers": "Trailers", + "vehicles": "Vehicles" + }, + "reports": { + "title": "Reports", + "invoices": "Impo/Expo Invoices", + "downloaded_parts": "Downloaded Parts", + "expiration": "Expiration Report" + }, + "settings": { + "general": "General" } }, "invoice_list": { diff --git a/frontend/messages/es.json b/frontend/messages/es.json index 3921448f..1ef4fdb3 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -2,6 +2,7 @@ "$schema": "https://inlang.com/schema/inlang-message-format", "hello_world": "Hello, {name} from es!", "sidebar": { + "dashboard": "Dashboard", "reference_data": { "title": "Catálogos Fijos", "codes_pedimento_regimen": "Códigos de Pedimento y Régimen", @@ -62,7 +63,8 @@ "prevalidators": "Prevalidadores", "electronic_notices": "Avisos electrónicos", "back_flush": "Back Flush", - "crossing_notice": "Aviso de cruce" + "crossing_notice": "Aviso de cruce", + "customs_broker_concepts": "Conceptos de Agente Aduanal" }, "fractions": { "title": "Fracciones", @@ -184,6 +186,22 @@ "nav_user": { "profile": "Perfil", "settings": "Configuración" + }, + "transports": { + "title": "Transportes", + "transporters": "Transportistas", + "drivers": "Conductores", + "trailers": "Trailers", + "vehicles": "Vehículos" + }, + "reports": { + "title": "Reportes", + "invoices": "Facturas Impo/Expo", + "downloaded_parts": "Partes descargadas", + "expiration": "Reporte de Vencimiento" + }, + "settings": { + "general": "General" } }, "invoice_list": { diff --git a/frontend/src/lib/components/sidebar/modules.ts b/frontend/src/lib/components/sidebar/modules.ts index 56663f4b..71cb42e0 100644 --- a/frontend/src/lib/components/sidebar/modules.ts +++ b/frontend/src/lib/components/sidebar/modules.ts @@ -77,7 +77,7 @@ export function getSidebarData(): SidebarData { ], navMain: [ { - title: "Dashboard", + title: m["sidebar.dashboard"](), url: "/dashboard", icon: LayoutDashboard, items: [], @@ -187,7 +187,7 @@ export function getSidebarData(): SidebarData { url: "/dashboard/general_catalogs/concepts", }, { - title: "Conceptos de Agente Aduanal", + title: m["sidebar.general_catalogs.customs_broker_concepts"](), url: "/dashboard/general_catalogs/customs_broker_concepts", }, { @@ -333,24 +333,24 @@ export function getSidebarData(): SidebarData { ], }, { - title: "Transportes", + title: m["sidebar.transports.title"](), url: "#", icon: Truck, items: [ { - title: "Transportistas", + title: m["sidebar.transports.transporters"](), url: "/dashboard/general_catalogs/transporters", }, { - title: "Conductores", + title: m["sidebar.transports.drivers"](), url: "/dashboard/general_catalogs/drivers", }, { - title: "Trailers", + title: m["sidebar.transports.trailers"](), url: "/dashboard/general_catalogs/trailers", }, { - title: "Vehículos", + title: m["sidebar.transports.vehicles"](), url: "/dashboard/general_catalogs/vehicles", }, ], @@ -500,20 +500,20 @@ export function getSidebarData(): SidebarData { items: [], }, { - title: "Reportes", + title: m["sidebar.reports.title"](), url: "#", icon: FileSearch, items: [ { - title: "Facturas Impo/Expo", + title: m["sidebar.reports.invoices"](), url: "/dashboard/reports/invoices", }, { - title: "Partes descargadas", + title: m["sidebar.reports.downloaded_parts"](), url: "/dashboard/reports/partes-descargadas", }, { - title: "Reporte de Vencimiento", + title: m["sidebar.reports.expiration"](), url: "/dashboard/reports/vencimiento", }, ], @@ -534,7 +534,7 @@ export function getSidebarData(): SidebarData { url: "", }, { - title: "General", + title: m["sidebar.settings.general"](), url: "/dashboard/settings/general", }, ], diff --git a/frontend/src/lib/utils/audit-log-i18n.ts b/frontend/src/lib/utils/audit-log-i18n.ts index 213252f4..de41dc8e 100644 --- a/frontend/src/lib/utils/audit-log-i18n.ts +++ b/frontend/src/lib/utils/audit-log-i18n.ts @@ -11,7 +11,15 @@ const PROCEDURE_TRANSLATIONS: Record = { 'SYSTEM AUTH': { en: 'System authentication', es: 'Autenticación del sistema' }, CATALOGS: { en: 'Catalogs', es: 'Catálogos' }, 'ELECTRONIC NOTICES': { en: 'Electronic notices', es: 'Avisos electrónicos' }, - DODA: { en: 'DODA', es: 'DODA' } + DODA: { en: 'DODA', es: 'DODA' }, + 'EXCHANGE RATE': { en: 'Exchange rate', es: 'Tipo de cambio' }, + PARTS: { en: 'Parts', es: 'Partes' }, + 'CUSTOMS BROKERS': { en: 'Customs brokers', es: 'Agentes aduanales' }, + TRAILER: { en: 'Trailer', es: 'Remolques' }, + VEHICLE: { en: 'Vehicle', es: 'Vehículos' }, + DRIVER: { en: 'Driver', es: 'Conductores' }, + TRANSPORTER: { en: 'Transporter', es: 'Transportistas' }, + 'UNIT CONVERSIONS': { en: 'Unit conversions', es: 'Conversiones de unidades' } }; const MOVEMENT_TRANSLATIONS: Record = { @@ -60,7 +68,18 @@ const ENTITY_TRANSLATIONS: Record = { 'ELECTRONIC NOTICES': { en: 'electronic notices', es: 'avisos electrónicos' }, DODA: { en: 'DODA', es: 'DODA' }, 'SYSTEM SCAF': { en: 'SCAF system', es: 'sistema SCAF' }, - 'SYSTEM AUTH': { en: 'system authentication', es: 'autenticación del sistema' } + 'SYSTEM AUTH': { en: 'system authentication', es: 'autenticación del sistema' }, + 'EXCHANGE RATE': { en: 'exchange rate', es: 'tipo de cambio' }, + PARTS: { en: 'parts', es: 'partes' }, + 'CUSTOMS BROKERS': { en: 'customs brokers', es: 'agentes aduanales' }, + TRAILER: { en: 'trailer', es: 'remolque' }, + TRAILERS: { en: 'trailers', es: 'remolques' }, + VEHICLE: { en: 'vehicle', es: 'vehículo' }, + VEHICLES: { en: 'vehicles', es: 'vehículos' }, + DRIVER: { en: 'driver', es: 'conductor' }, + DRIVERS: { en: 'drivers', es: 'conductores' }, + TRANSPORTER: { en: 'transporter', es: 'transportista' }, + TRANSPORTERS: { en: 'transporters', es: 'transportistas' } }; const VERB_TRANSLATIONS: Record = { @@ -94,7 +113,18 @@ const TOKEN_TRANSLATIONS: Record = { CLIENT: { en: 'client', es: 'cliente' }, CLIENTS: { en: 'clients', es: 'clientes' }, PROVIDER: { en: 'provider', es: 'proveedor' }, - PROVIDERS: { en: 'providers', es: 'proveedores' } + PROVIDERS: { en: 'providers', es: 'proveedores' }, + TRAILER: { en: 'trailer', es: 'remolque' }, + TRAILERS: { en: 'trailers', es: 'remolques' }, + VEHICLE: { en: 'vehicle', es: 'vehículo' }, + VEHICLES: { en: 'vehicles', es: 'vehículos' }, + DRIVER: { en: 'driver', es: 'conductor' }, + DRIVERS: { en: 'drivers', es: 'conductores' }, + TRANSPORTER: { en: 'transporter', es: 'transportista' }, + TRANSPORTERS: { en: 'transporters', es: 'transportistas' }, + BROKER: { en: 'broker', es: 'agente' }, + BROKERS: { en: 'brokers', es: 'agentes' }, + CUSTOMS: { en: 'customs', es: 'aduanal' } }; function normalizeKey(value: string) {