28 lines
643 B
Vue
28 lines
643 B
Vue
<template>
|
|
<a :href="baseUrl + FAQ + locale + '.' + EXTENSION_FAQs" class="font-bold underline w-full text-center"
|
|
target="_blank">
|
|
<div class="mr-4 text-primary">{{ $t('INSTRUCTIONS') }}</div>
|
|
</a>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { FAQ, EXTENSION_FAQs, SELECTED_LANG } from "@/helpers";
|
|
import { onMounted, ref } from "vue";
|
|
|
|
const baseUrl = `${import.meta.env.VITE_API_URL}`;
|
|
|
|
const locale = ref("tm");
|
|
|
|
const setLocale = () => {
|
|
let lang = localStorage.getItem(SELECTED_LANG) || "tm";
|
|
console.log('faq locale: ' + lang);
|
|
|
|
locale.value = lang;
|
|
};
|
|
|
|
|
|
onMounted(() => {
|
|
setLocale();
|
|
});
|
|
</script>
|
|
|