import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';

i18n
  .use(LanguageDetector)
  .use(initReactI18next)
  .init({
    fallbackLng: 'fr',
    interpolation: {
      escapeValue: false,
    },
    resources: {
          fr: {
        translation: {
          nav: {
            why: "Pourquoi nous ?",
            formats: "Formats",
            pricing: "Tarification",
            login: "Connexion",
            startFree: "Essai gratuit",
          },
          hero: {
            tag: "Intelligence Artificielle Documentaire",
            titleLine1: "Traduisez vos documents.",
            titleLine2: "Formatage préservé.",
            description: "Le seul traducteur qui préserve les graphiques, tables des matières, formes et en-têtes — exactement tels qu'ils étaient.",
            ctaMain: "Essai gratuit",
            ctaSec: "Voir les offres",
            deleted: "Sécurisé de bout en bout",
            noHidden: "Zéro coût caché",
            preview: "Aperçu en temps réel",
            formattedOk: "Formatage OK",
            aiActive: "IA active"
          },
          steps: {
             title: "Comment ça marche ?",
             subtitle: "Trois étapes. Zéro perte de mise en page.",
             stepLabel: "ÉTAPE {{num}}",
             step1: {
               num: "01",
               title: "Déposez votre fichier",
               desc: "Glissez-déposez votre document Word, Excel, PowerPoint ou PDF."
             },
             step2: {
               num: "02",
               title: "Analyse IA",
               desc: "Notre IA identifie le texte et le contexte pour une précision maximale."
             },
             step3: {
               num: "03",
               title: "Téléchargement",
               desc: "Récupérez votre fichier traduit avec une mise en page identique."
             }
          },
          features: {
            tag: "Moteur IA",
            title: "La traduction qui comprend votre métier",
            description: "Wordly n'est pas qu'un traducteur. C'est un expert en mise en forme contextuelle.",
            context: {
              title: "Précision Contextuelle",
              desc: "L'IA comprend les nuances techniques de vos documents."
            },
            glossary: {
              title: "Support Multi-format",
              desc: "Word, Excel, PowerPoint et PDF supportés nativement."
            },
            vision: {
              title: "Mise en page intacte",
              desc: "Graphiques, SmartArt et en-têtes restent à leur place."
            }
          },
          layout: {
            title: "Votre mise en page,",
            title2: "parfaitement intacte",
            subtitle: "Nous traduisons le contenu sans jamais toucher à la structure de vos fichiers.",
            points: [
              { title: "SmartArt & Diagrammes", desc: "Tout le texte à l'intérieur est localisé." },
              { title: "Tables des matières", desc: "Mises à jour automatiquement après traduction." },
              { title: "Graphiques complexes", desc: "Titres et légendes traduits sans erreur." },
              { title: "Zones de texte", desc: "Ajustement automatique si le texte s'allonge." },
              { title: "En-têtes & Pieds", desc: "Aucun élément n'est oublié par l'IA." },
              { title: "130+ Langues", desc: "Support global pour tous vos besoins." }
            ]
          },
          formats: {
            title: "Chaque format,",
            title2: "unifié",
            subtitle: "Momento ingère tout votre univers numérique pour une mémoire unifiée.",
            word: {
              name: "Documents",
              items: ["Notes structurées", "Fichiers PDF & Office", "Extractions Web", "Transcriptions Audio"]
            },
            excel: {
              name: "Connexions",
              items: ["Graphe de connaissance", "Backlinks bidirectionnels", "Tags sémantiques", "Métadonnées IA"]
            },
            pptx: {
              name: "Visualisation",
              items: ["Brainstorming radial", "Canevas infini", "Export MarkDown", "Slides interactives"]
            },
            pdf: {
              name: "Intégrations",
              items: ["API Ouverte", "Stratégie BYOK", "Extension Navigateur", "App Mobile Natice"]
            }
          },
          pricing: {
            title: "Le prix de l'excellence",
            subtitle: "Choisissez votre niveau d'amplification cognitive.",
            monthly: "Mensuel",
            annual: "Annuel",
            bestValue: "Recommandé",
            month: "mois",
            footer: "Engagement mensuel. Annulable à tout moment.",
            starter: {
              name: "Individu",
              desc: "Pour les esprits curieux",
              features: ["1 000 Notes maximum", "Recherche sémantique", "3 Agents classiques", "BYOK limité (OpenAI)"],
              cta: "Commencer"
            },
            pro: {
              name: "Expert",
              desc: "Pour les bâtisseurs de savoir",
              features: ["Notes illimitées", "Stratégie BYOK totale", "Tous les agents inclus", "Brainstorming illimité", "Support prioritaire"],
              cta: "Essayer Pro"
            },
            business: {
              name: "Studio",
              desc: "Pour les équipes créatives",
              features: ["Espace collaboratif", "Graphe partagé", "API de développement", "Contrôles admin", "10 sièges inclus"],
              cta: "Contacter"
            }
          },
          cta: {
            title: "Prêt à libérer votre plein potentiel ?",
            subtitle: "Rejoignez la révolution de la gestion de la connaissance assistée par IA.",
            button: "Lancer Momento"
          },
          footer: {
            desc: "Spécialiste de la traduction documentaire intelligente.",
            product: "Produit",
            resources: "Ressources",
            legal: "Légal",
            rights: "© 2026 WORDLY — Tous droits réservés."
          }
        }
      },
      en: {
        translation: {
          nav: {
            why: "Why Wordly?",
            formats: "Formats",
            pricing: "Pricing",
            login: "Login",
            startFree: "Start Free",
          },
          hero: {
            tag: "Document Artificial Intelligence",
            titleLine1: "Translate your documents.",
            titleLine2: "Preserve layout.",
            description: "The only translator that preserves charts, tables of contents, shapes, and headers — exactly as they were.",
            ctaMain: "Start for free",
            ctaSec: "See pricing",
            deleted: "End-to-end secure",
            noHidden: "Zero hidden costs",
            preview: "Real-time preview",
            formattedOk: "Formatting OK",
            aiActive: "AI active"
          },
          steps: {
             title: "How it works?",
             subtitle: "Three steps. Zero layout loss.",
             stepLabel: "STEP {{num}}",
             step1: {
               num: "01",
               title: "Upload your file",
               desc: "Drag & drop your Word, Excel, PowerPoint or PDF document."
             },
             step2: {
               num: "02",
               title: "AI Analysis",
               desc: "Our AI identifies text and context for maximum accuracy."
             },
             step3: {
               num: "03",
               title: "Download",
               desc: "Get your translated file with an identical layout."
             }
          },
          features: {
            tag: "AI Engine",
            title: "Translation that understands your business",
            description: "Wordly is more than a translator. It's a contextual formatting expert.",
            context: {
              title: "Contextual Accuracy",
              desc: "The AI understands the technical nuances of your documents."
            },
            glossary: {
              title: "Multi-format Support",
              desc: "Word, Excel, PowerPoint, and PDF supported natively."
            },
            vision: {
              title: "Intact Layout",
              desc: "Charts, SmartArt, and headers stay in their place."
            }
          },
          layout: {
            title: "Your layout,",
            title2: "perfectly intact",
            subtitle: "We translate the content without ever touching the structure of your files.",
            points: [
              { title: "SmartArt & Diagrams", desc: "All text inside is localized." },
              { title: "Tables of Contents", desc: "Updated automatically after translation." },
              { title: "Complex Charts", desc: "Titles and legends translated without error." },
              { title: "Text Zones", desc: "Automatic adjustment if text expands." },
              { title: "Headers & Footers", desc: "No element is forgotten by the AI." },
              { title: "130+ Languages", desc: "Global support for all your needs." }
            ]
          },
          formats: {
            title: "Every format,",
            title2: "unified",
            subtitle: "Momento ingests your entire digital universe for a unified memory.",
            word: {
              name: "Documents",
              items: ["Structured notes", "PDF & Office files", "Web extractions", "Audio transcriptions"]
            },
            excel: {
              name: "Connections",
              items: ["Knowledge graph", "Bidirectional backlinks", "Semantic tags", "AI metadata"]
            },
            pptx: {
              name: "Visualization",
              items: ["Radial brainstorming", "Infinite canvas", "MarkDown export", "Interactive slides"]
            },
            pdf: {
              name: "Integrations",
              items: ["Open API", "BYOK Strategy", "Browser Extension", "Native Mobile App"]
            }
          },
          pricing: {
            title: "The price of excellence",
            subtitle: "Choose your cognitive amplification level.",
            monthly: "Monthly",
            annual: "Annual",
            bestValue: "Recommended",
            month: "month",
            footer: "Monthly commitment. Cancel anytime.",
            starter: {
              name: "Individual",
              desc: "For curious minds",
              features: ["1,000 Notes maximum", "Semantic search", "3 Classical agents", "Limited BYOK (OpenAI)"],
              cta: "Start"
            },
            pro: {
              name: "Expert",
              desc: "For knowledge builders",
              features: ["Unlimited notes", "Full BYOK strategy", "All agents included", "Unlimited brainstorming", "Priority support"],
              cta: "Try Pro"
            },
            business: {
              name: "Studio",
              desc: "For creative teams",
              features: ["Collaborative space", "Shared graph", "Developer API", "Admin controls", "10 seats included"],
              cta: "Contact"
            }
          },
          cta: {
            title: "Ready to unlock your full potential?",
            subtitle: "Join the revolution of AI-assisted knowledge management.",
            button: "Launch Momento"
          },
          footer: {
            desc: "Expert in intelligent document translation.",
            product: "Product",
            resources: "Resources",
            legal: "Legal",
            rights: "© 2026 WORDLY — All rights reserved."
          }
        }
      }
    }
  });

export default i18n;
