<template>
  <a-config-provider :locale="locale[lang]">
    <slot></slot>
  </a-config-provider>
</template>

<script setup lang="ts">
import zh from 'ant-design-vue/es/locale/zh_CN'
import en from 'ant-design-vue/es/locale/en_US'
import ja from 'ant-design-vue/es/locale/ja_JP'
import { lang } from '@/lang'

const locale = {
  zh,
  en,
  ja
}
</script>
