Skip to content

Commit

Permalink
Use localeStore as value of languageselector.
Browse files Browse the repository at this point in the history
  • Loading branch information
Elweyn committed Mar 19, 2024
1 parent d40547e commit 94c6915
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion presenter/src/components/language/LanguageSelector.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-select
v-model="$i18n.locale"
v-model="localeStore.locale"
density="compact"
name="language"
:items="languages"
Expand Down Expand Up @@ -29,11 +29,14 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { useLocaleStore } from '#stores/localeStore';

Check failure on line 32 in presenter/src/components/language/LanguageSelector.vue

View workflow job for this annotation

GitHub Actions / Lint - Presenter

Delete `;`
// TODO better place? maybe locales folder?
const languages = ref([
{ locale: 'de', title: 'Deutsch' },
{ locale: 'en', title: 'English' },
])
const localeStore = useLocaleStore()
</script>

<style lang="scss">
Expand Down

0 comments on commit 94c6915

Please sign in to comment.