/**
 * Words used on many pages (menus, footer, buttons). Page-specific text sits in each page with pick(lang, {…}).
 *
 * Spanish style guide (keep new text consistent):
 *  - "tú" form, short sentences, US Spanish (es-US) for truck owners and drivers in the USA
 *  - keep in English: FleetTruck360, plan names (Starter, Professional, Business), Com Check, Lumper, IFTA, CDL, USDOT,
 *    MPG, PDF, Excel, Word, CSV, WhatsApp, and the app screens (the app itself is in English)
 *  - trip sheet = hoja de viaje · owner-operator = propietario-operador · fleet = flota · load = carga
 *    driver pay / settlement = pago de choferes / liquidación · shipper = remitente · consignee = destinatario
 *    free trial = prueba gratis · book a demo = reservar una demostración · dashboard = panel
 */
import type { Lang } from './index';

export const ui = {
  en: {
    skip: 'Skip to content',
    home: 'Home',
    nav: { features: 'Features', pricing: 'Pricing', blog: 'Blog', faq: 'FAQ', contact: 'Contact' },
    solutions: 'Solutions',
    megaFoot: 'Everything here is included in your FleetTruck360 dashboard.',
    allFeatures: 'All features',
    bookDemo: 'Book a demo',
    bookDemoTitle: 'Book a Demo',
    logIn: 'Log in',
    logInShort: 'Log in',
    startTrial: 'Start free trial',
    startTrialTitle: 'Start Free Trial',
    startTrialShort: ['Start ', 'Free ', 'Trial'],      // header button: "Start [Free ]Trial" (Free hidden on small screens)
    startTrialDays: (d: number) => `Start ${d}-day free trial`,
    openMenu: 'Open menu',
    mainNav: 'Main',
    mobileNav: 'Mobile',
    homeLabel: (name: string) => `${name} home`,
    // phone tab bar
    tabs: { label: 'Quick navigation', home: 'Home', features: 'Features', trial: 'Free trial', pricing: 'Pricing', more: 'More' },
    // footer
    footTag: 'Trip sheets, fleet and driver pay, simplified.',
    footCols: { platform: 'Platform', solutions: 'Solutions', company: 'Company', legal: 'Legal' },
    rights: 'All rights reserved.',
    privacy: 'Privacy',
    terms: 'Terms',
    sitemap: 'Sitemap',
    helpSupport: 'Help & Support',
    // call to action band
    cta: {
      label: 'Get started',
      title: 'Ready to leave paper trip sheets behind?',
      text: (d: number) => `Start your ${d}-day free trial today. No card required, and setup takes about 5 minutes.`,
    },
    // language menu
    language: 'Language',
    chooseLanguage: 'Choose language',
    englishOnly: 'This page is in English only.',
    moreLangs: 'More languages',
    byGoogle: 'Translated by Google',
    searchLang: 'Search language',
    noLang: 'No language found',
    gtFailed: 'Google Translate could not be loaded. Check your connection and try again.',
  },
  es: {
    skip: 'Ir al contenido',
    home: 'Inicio',
    nav: { features: 'Funciones', pricing: 'Precios', blog: 'Blog', faq: 'Preguntas', contact: 'Contacto' },
    solutions: 'Soluciones',
    megaFoot: 'Todo esto está incluido en tu panel de FleetTruck360.',
    allFeatures: 'Todas las funciones',
    bookDemo: 'Reservar demostración',
    bookDemoTitle: 'Reservar demostración',
    logIn: 'Iniciar sesión',
    logInShort: 'Entrar',
    startTrial: 'Prueba gratis',
    startTrialTitle: 'Empezar prueba gratis',
    startTrialShort: ['', 'Prueba ', 'gratis'],
    startTrialDays: (d: number) => `Prueba gratis de ${d} días`,
    openMenu: 'Abrir menú',
    mainNav: 'Principal',
    mobileNav: 'Móvil',
    homeLabel: (name: string) => `Inicio de ${name}`,
    tabs: { label: 'Navegación rápida', home: 'Inicio', features: 'Funciones', trial: 'Prueba gratis', pricing: 'Precios', more: 'Más' },
    footTag: 'Hojas de viaje, flota y pago de choferes, más fácil.',
    footCols: { platform: 'Plataforma', solutions: 'Soluciones', company: 'Empresa', legal: 'Legal' },
    rights: 'Todos los derechos reservados.',
    privacy: 'Privacidad',
    terms: 'Términos',
    sitemap: 'Mapa del sitio',
    helpSupport: 'Ayuda y soporte',
    cta: {
      label: 'Empezar',
      title: '¿Listo para dejar las hojas de viaje en papel?',
      text: (d: number) => `Empieza hoy tu prueba gratis de ${d} días. Sin tarjeta, y la configuración toma unos 5 minutos.`,
    },
    language: 'Idioma',
    chooseLanguage: 'Elegir idioma',
    englishOnly: 'Esta página está solo en inglés.',
    moreLangs: 'Más idiomas',
    byGoogle: 'Traducción automática de Google',
    searchLang: 'Buscar idioma',
    noLang: 'No se encontró el idioma',
    gtFailed: 'No se pudo cargar Google Translate. Revisa tu conexión e inténtalo de nuevo.',
  },
} satisfies Record<Lang, unknown>;

export const t = (lang: Lang) => ui[lang];
