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

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

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

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

const seoTitles = {
  zh: "委员会任命 | 公司治理 | FiEE",
  en: "Committee Appointments | Corporate Governance | FiEE",
  ja: "委員会任命 | コーポレートガバナンス | FiEE",
  "zh-TW": "委員會任命 | 公司治理 | FiEE",
};

const seoDescriptions = {
  zh: "了解FiEE公司委员会结构、章程和任命信息。",
  en: "Information regarding FiEE corporate committee structures, charters, and appointments.",
  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>




