<script setup>
import { defineAsyncComponent } from 'vue'

const size375 = defineAsyncComponent(() => import("@/views/footerLinks/termsOfUse/index.vue"));
const size1920 = defineAsyncComponent(() => import("@/views/footerLinks/termsOfUse/index.vue"));

const { viewComponent, componentKey } = useViewSelector({
  size375,
  size1920
});

// 国际化支持
const { locale } = useI18n();

const seoTitles = {
  zh: "使用条款 | 法律协议 | FiEE",
  en: "Terms of Use | Legal Agreement | FiEE",
  ja: "利用規約 | 法的合意 | FiEE",
  "zh-TW": "使用條款 | 法律協議 | FiEE",
};

const seoDescriptions = {
  zh: "了解使用FiEE官方网站和服务的条款和条件。",
  en: "Understand the terms and conditions for using the FiEE official website and services.",
  ja: "FiEE公式ウェブサイトおよびサービスの利用規約をご理解ください。",
  "zh-TW": "了解使用FiEE官方網站和服務的條款和條件。",
};

const currentLocale = locale.value;

useSeoMeta({
  title: seoTitles[currentLocale] || seoTitles.en,
  description: seoDescriptions[currentLocale] || seoDescriptions.en,
  ogTitle: seoTitles[currentLocale] || seoTitles.en,
})
</script>

<template>
  <component :is="viewComponent" :key="componentKey" />
</template>




