feat:#60 format, lint and fix build

This commit is contained in:
masterElmar
2023-11-16 23:45:45 +01:00
parent 9f937afe94
commit e9db7cb4b0
24 changed files with 307 additions and 271 deletions

View File

@@ -2,11 +2,11 @@
import { computed } from "vue";
import localeStore from "../store/localeStore.ts";
import { useI18n } from "vue-i18n";
const { t } = useI18n({ useScope: 'global' })
const { t } = useI18n({ useScope: "global" });
const countries = computed(() => [
{ name: t('english'), code: "en", icon: "🇬🇧" },
{ name: t('german'), code: "de", icon: "🇩🇪" },
{ name: t("english"), code: "en", icon: "🇬🇧" },
{ name: t("german"), code: "de", icon: "🇩🇪" },
]);
function displayIcon(code: string) {
@@ -23,12 +23,12 @@ function updateLocale(locale: string) {
</script>
<template>
<Dropdown
:options="$i18n.availableLocales"
v-model="$i18n.locale"
@change="updateLocale($event.data)"
:options="$i18n.availableLocales"
option-label="name"
placeholder="Select a Language"
class="w-full md:w-14rem"
@change="updateLocale($event.data)"
>
<template #value="slotProps">
<div v-if="slotProps.value" class="flex align-items-center">