gestionar idioma con states de vuex

This commit is contained in:
María
2025-07-29 17:38:12 +02:00
committed by María
parent 8a92b3d1f9
commit fb4c831c06
10 changed files with 124 additions and 24 deletions

View File

@@ -1,21 +1,15 @@
<template>
<div class="text-center max-w-xl mx-auto flex flex-col items-center justify-center h-screen">
<h1 class="text-2xl md:text-3xl font-medium leading-snug">
Estamos mejorando el Kit,<br/>
pronto estarán disponibles todas sus herramientas.
</h1>
<script>
export default {
data() {
return {
lang: '',
};
},
mounted() {
const langcode = this.$store.getters['langcode'];
this.lang = langcode;
<!-- Texto secundario -->
<p class="mt-6 text-base text-gray-700">
Síguenos en
<a
href="https://www.instagram.com/kitecosocial/"
class="text-[#5636d0] font-medium hover:underline"
target="_blank"
rel="noopener noreferrer"
>
@kit-eco.social
</a>
</p>
</div>
</template>
this.$router.replace(`/${langcode}`);
},
};
</script>