Fix type errors

This commit is contained in:
2025-10-16 20:44:52 +02:00
parent c80fc61539
commit baca5415c3
12 changed files with 56 additions and 43 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<script setup lang="ts">
const { locale, locales, t } = useI18n();
const switchLocalePath = useSwitchLocalePath();
const availableLocales = computed(() => {
return locales.value.filter((i) => i.code !== locale.value);
});
@@ -14,7 +15,7 @@ function l(locale: (typeof locales.value)[0]) {
<VaSidebarItem
v-for="loc in availableLocales"
:key="loc.code"
:to="$switchLocalePath(loc.code)"
:to="switchLocalePath(loc.code)"
:title="t('layouts.switch_lang', { locale: t(`locales.${l(loc)}`) })"
>
<VaSidebarItemContent>