<template>
	<div>
		<site-header/>
		<nuxt/>
		<home-footer v-if="this.$route.name === 'lang'"></home-footer>
		<site-footer v-else></site-footer>
	</div>
</template>


<script>
   export default {
      beforeCreate() {
         if (this.$route.params.lang === 'fa') {
            $('html').attr({lang: 'fa'})
         } else if (this.$route.params.lang === 'en') {
            $('html').attr({lang: 'en'})
         }
      },
      mounted() {},
      head() {
         return {}
      }
   }
</script>
