import html from "html"; import { defineAsyncComponent } from "vue"; import { useAppStore } from "../store/index.js"; import { useI18n } from "vue-i18n"; export default { components: { SvgIcon: defineAsyncComponent(() => import("../components/icon/index.js")) }, template: html` `, setup() { const appStore = useAppStore(); const i18n = useI18n(); const changeLocale = (locale) => { appStore.localization.locale = locale; i18n.locale.value = locale; }; return { appStore, changeLocale, }; }, };