refactor: format
TS Lint / ESLint (push) Has been cancelled
TS Lint / Oxlint (push) Has been cancelled
TS Lint / TypeScript (push) Has been cancelled

This commit is contained in:
2026-07-14 11:47:05 +02:00
parent 566f8403ef
commit a9b2e31d81
17 changed files with 432 additions and 183 deletions
+5 -4
View File
@@ -1,15 +1,16 @@
<script setup lang="ts">
import { setCookie } from '@/lib/cookies';
import { useI18n } from 'vue-i18n';
import { setCookie } from "@/lib/cookies";
import { useI18n } from "vue-i18n";
const i18n = useI18n();
function onSetLang(lang: string) {
i18n.locale.value = lang;
setCookie('lang', lang);
setCookie("lang", lang);
}
</script>
<template>
<a href="#" @click.prevent="onSetLang('fr')">🇫🇷</a> / <a href="#" @click.prevent="onSetLang('en')">🇺🇸</a>
<a href="#" @click.prevent="onSetLang('fr')">🇫🇷</a> /
<a href="#" @click.prevent="onSetLang('en')">🇺🇸</a>
</template>