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

const size375 = defineAsyncComponent(() => import("@/views/boarddirectors/index.vue"));
const size768 = defineAsyncComponent(() => import("@/views/boarddirectors/index.vue"));
const size1440 = defineAsyncComponent(() => import("@/views/boarddirectors/index.vue"));
const size1920 = defineAsyncComponent(() => import("@/views/boarddirectors/index.vue"));

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

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

const seoTitles = {
  zh: "董事会 | 领导团队 | FiEE",
  en: "Board of Directors | Leadership | FiEE",
  ja: "取締役会 | リーダーシップ | FiEE",
  "zh-TW": "董事會 | 領導團隊 | FiEE",
};

const seoDescriptions = {
  zh: "认识FiEE董事会成员，了解他们的专业知识和领导力。",
  en: "Meet the members of the FiEE Board of Directors and learn about their expertise and leadership.",
  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>




