"""Libellés de la facture imprimable, traduits pour l'envoi à des clients étrangers.
Seuls les libellés fixes sont traduits — les données saisies (noms de produits, clients,
notes...) restent telles que l'utilisateur les a écrites."""

TRADUCTIONS = {
    "fr": {
        "titre_facture": "FACTURE",
        "titre_devis": "DEVIS",
        "titre_avoir": "FACTURE D'AVOIR",
        "numero": "N°",
        "date": "Date",
        "echeance": "Échéance",
        "client": "CLIENT",
        "produit": "Produit",
        "nb_pal": "Nb/Pal",
        "type_emb": "Type EMB",
        "nbr_colis": "Nbr Colis",
        "poids_brut": "P. Brut",
        "poids_net": "P. Net",
        "prix": "Prix",
        "montant": "Montant",
        "total": "Total",
        "transporteur": "Transporteur",
        "matricule_camion": "Matricule camion N°",
        "incoterm": "Incoterm",
        "banque": "Banque",
        "iban": "IBAN",
        "swift": "Swift / BIC",
        "tel": "Tél",
        "portable": "Portable",
        "email": "Email",
        "rc": "R.C",
        "avoir_sur": "Avoir sur facture",
        "reglement": "Mode de règlement",
        "imprimer": "Imprimer / Exporter en PDF",
        "langue": "Langue",
    },
    "en": {
        "titre_facture": "INVOICE",
        "titre_devis": "QUOTE",
        "titre_avoir": "CREDIT NOTE",
        "numero": "No.",
        "date": "Date",
        "echeance": "Due date",
        "client": "CLIENT",
        "produit": "Product",
        "nb_pal": "Pallets",
        "type_emb": "Packaging",
        "nbr_colis": "Nb of packages",
        "poids_brut": "Gross weight",
        "poids_net": "Net weight",
        "prix": "Price",
        "montant": "Amount",
        "total": "Total",
        "transporteur": "Carrier",
        "matricule_camion": "Truck plate no.",
        "incoterm": "Incoterm",
        "banque": "Bank",
        "iban": "IBAN",
        "swift": "Swift / BIC",
        "tel": "Phone",
        "portable": "Mobile",
        "email": "Email",
        "rc": "Reg. No.",
        "avoir_sur": "Credit note for invoice",
        "reglement": "Payment method",
        "imprimer": "Print / Export as PDF",
        "langue": "Language",
    },
    "es": {
        "titre_facture": "FACTURA",
        "titre_devis": "PRESUPUESTO",
        "titre_avoir": "FACTURA DE ABONO",
        "numero": "N.º",
        "date": "Fecha",
        "echeance": "Vencimiento",
        "client": "CLIENTE",
        "produit": "Producto",
        "nb_pal": "N.º Pal",
        "type_emb": "Tipo EMB",
        "nbr_colis": "N.º Bultos",
        "poids_brut": "P. Bruto",
        "poids_net": "P. Neto",
        "prix": "Precio",
        "montant": "Importe",
        "total": "Total",
        "transporteur": "Transportista",
        "matricule_camion": "Matrícula camión",
        "incoterm": "Incoterm",
        "banque": "Banco",
        "iban": "IBAN",
        "swift": "Swift / BIC",
        "tel": "Tel",
        "portable": "Móvil",
        "email": "Correo",
        "rc": "R.C",
        "avoir_sur": "Abono de la factura",
        "reglement": "Método de pago",
        "imprimer": "Imprimir / Exportar a PDF",
        "langue": "Idioma",
    },
}


def obtenir_traductions(langue: str | None) -> dict:
    return TRADUCTIONS.get(langue or "fr", TRADUCTIONS["fr"])
