Is hutopy finally trilangual

This commit is contained in:
2025-04-19 01:56:59 -04:00
parent af71c5e952
commit b1681252cc
140 changed files with 5441 additions and 1085 deletions

View File

@@ -17,6 +17,21 @@
<script async setup>
import SideBar from "@/views/main/SideBar.vue";
import {useLanguageStore} from "@/stores/languageStore.js";
import {watch} from "vue";
import {useI18n} from "vue-i18n";
// Watch for language changes and update i18n locale
const languageStore = useLanguageStore();
const { locale } = useI18n();
// Watch for changes to the language store
watch(() => languageStore.locale, (newLocale) => {
if (newLocale) {
locale.value = newLocale;
}
}, { immediate: true });
</script>
<style scoped>