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

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

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

const { locale } = useI18n();

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