<template>
  <router-view />
</template>

<script setup>
import { Cookies, useQuasar } from "quasar";
import { watch } from "vue";
import { useI18n } from "vue-i18n";

defineOptions({
  name: "App",
});

const { locale } = useI18n();

const $q = useQuasar();

$q.dark.set(false);

watch(
  () => locale.value,
  (value) => {
    Cookies.set("locale", value, {
      expires: 365,
      sameSite: "Lax",
      path: "/",
    });
  },
);
</script>
