fix: translate

This commit is contained in:
2026-04-01 13:40:56 +02:00
parent 8bf5a1cf8b
commit f9ae1e491e
4 changed files with 579 additions and 231 deletions

View File

@@ -2,12 +2,12 @@ import { useFetchJson } from '@/composable/useFetchJson'
import type { Resp } from '@/types'
import type { Settings } from '@/types/settings'
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { computed, ref } from 'vue'
export const useSettingsStore = defineStore('settings', () => {
const settings = ref<Settings | null>(null)
const loaded = ref(false)
const shopDefaultLanguage= settings?.app?.shop_default_language
const shopDefaultLanguage = computed(() => settings.value?.app?.shop_default_language ?? 1)
async function getSettings(): Promise<Settings | null> {
if (loaded.value && settings.value) return settings.value