feat: lang
TS Lint / Oxlint (push) Successful in 43s
TS Lint / TypeScript (push) Successful in 49s
TS Lint / ESLint (push) Successful in 1m10s

This commit is contained in:
2026-07-14 10:45:35 +02:00
parent d969b9e21b
commit c7b1f3ed49
16 changed files with 237 additions and 55 deletions
+15
View File
@@ -0,0 +1,15 @@
<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>