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

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

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

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

const seoTitles = {
  zh: "Cookie设置 | 隐私偏好 | FiEE",
  en: "Cookies Settings | Privacy Preferences | FiEE",
  ja: "Cookie設定 | プライバシー設定 | FiEE",
  "zh-TW": "Cookie設置 | 隱私偏好 | FiEE",
};

const seoDescriptions = {
  zh: "管理您的Cookie偏好，了解我们如何使用Cookie改善您的浏览体验。",
  en: "Manage your cookie preferences and learn how we use cookies to improve your browsing experience.",
  ja: "Cookieの設定を管理し、閲覧体験を向上させるためにCookieをどのように使用しているかをご確認ください。",
  "zh-TW": "管理您的Cookie偏好，了解我們如何使用Cookie改善您的瀏覽體驗。",
};

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>




