// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },
  runtimeConfig: {
    public: {
      registerUrl: 'https://qvct.event.ipikar-consulting.com/event/5debbc49-ffe1-437a-b899-7be28f1c9263/do/inscription',
      officialSiteUrl: 'https://www.ipikar-consulting.com/',
    },
  },
  modules: ['@nuxt/eslint', '@nuxt/fonts', '@nuxt/icon', '@nuxt/image', "@nuxtjs/i18n", "nuxt-swiper"],
  i18n: {
    vueI18n: "./i18n.config.ts",
    optimizeTranslationDirective: false,
    locales: [
      {
        code: "en",
        name: "English",
        language: "en-US",
        file: "en.json",
      },
      {
        code: "fr",
        name: "Français",
        language: "fr-FR",
        file: "fr.json",
      },
    ],
    defaultLocale: "fr",
    lazy: true,
    langDir: "lang/",
  },
  app: {
    head: {
      title: "QVCT | 3ème edition",
      meta: [
        { "http-equiv": "X-UA-Compatible", content: "IE=edge" },
        { name: "viewport", content: "width=device-width, initial-scale=1.0" },

      ],
      link: [ 
        { rel: 'icon', type: 'image/x-icon', href: '/favicon.png' },
        { rel: "stylesheet", href: "/assets/css/bootstrap.min.css"},
        { rel: "stylesheet", href: "/assets/css/style.css"},
        { rel: "stylesheet", href: "/assets/css/responsive.css" },
        { rel: "stylesheet", href: "/assets/css/font-awesome.min.css" },
        { rel: "stylesheet", href: "/assets/css/animate.css" },
        { rel: "stylesheet", href: "/assets/css/colorbox.css" },
        {
          rel: "stylesheet",
          href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css",
        },
        { rel: "preconnect", href: "https://fonts.gstatic.com" },
        { rel: "preconnect", href: "https://fonts.googleapis.com" },
        {
          href: "https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap",
          rel: "stylesheet",
        },
        { rel: "stylesheet", href: "/assets/css/theme.css"},
      ],
      css: [
        '@fortawesome/fontawesome-free/css/all.css'
      ],
      script: [
        { type: 'text/javascript', src: "/assets/js/jquery.js" , body: true },
        { type: 'text/javascript', src: "/assets/js/bootstrap.min.js" , body: true },
        { type: 'text/javascript', src: "/assets/js/jquery.counterup.min.js", body: true },
        { type: 'text/javascript', src: "/assets/js/jquery.jCounter.js", body: true },
        { type: 'text/javascript', src: "/assets/js/waypoints.min.js", body: true },
        { type: 'text/javascript', src: "/assets/js/jquery.colorbox.js" , body: true },
        //{ type: 'text/javascript', src: "/assets/js/smoothscroll.js", body: true },
        { type: 'text/javascript', src: "/assets/js/gmap3.min.js", body: true },
        { type: 'text/javascript', src: "/assets/js/custom.js", body: true },
      ],
    },
  },
})