mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-17 12:02:26 +01:00
feat:#60 format, lint and fix build
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user