Files
klemek a9b2e31d81
TS Lint / ESLint (push) Has been cancelled
TS Lint / Oxlint (push) Has been cancelled
TS Lint / TypeScript (push) Has been cancelled
refactor: format
2026-07-14 11:47:05 +02:00

17 lines
386 B
Vue

<script setup lang="ts">
import { setCookie } from "@/lib/cookies";
import { useI18n } from "vue-i18n";
const i18n = useI18n();
function onSetLang(lang: string) {
i18n.locale.value = lang;
setCookie("lang", lang);
}
</script>
<template>
<a href="#" @click.prevent="onSetLang('fr')">🇫🇷</a> /
<a href="#" @click.prevent="onSetLang('en')">🇺🇸</a>
</template>