diff --git a/app/components.d.ts b/app/components.d.ts index 2a34d87a..2d3e57bd 100644 --- a/app/components.d.ts +++ b/app/components.d.ts @@ -54,6 +54,7 @@ declare module 'vue' { ASelect: typeof import('ant-design-vue/es')['Select'] ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] ASpace: typeof import('ant-design-vue/es')['Space'] + ASpin: typeof import('ant-design-vue/es')['Spin'] AStatistic: typeof import('ant-design-vue/es')['Statistic'] AStep: typeof import('ant-design-vue/es')['Step'] ASteps: typeof import('ant-design-vue/es')['Steps'] diff --git a/app/src/App.vue b/app/src/App.vue index 06b1a5b2..5bb33144 100644 --- a/app/src/App.vue +++ b/app/src/App.vue @@ -12,6 +12,8 @@ import { useSettingsStore } from '@/pinia' import gettext from '@/gettext' import loadTranslations from '@/api/translations' +const route = useRoute() + const media = window.matchMedia('(prefers-color-scheme: dark)') const callback = () => { @@ -51,7 +53,7 @@ const lang = computed(() => { const settings = useSettingsStore() const is_theme_dark = computed(() => settings.theme === 'dark') -loadTranslations() +loadTranslations(route)