import { createI18n } from "vue-i18n";
import zhCN from "./zh-CN.json";

export type MessageSchema = typeof zhCN;

const i18n = createI18n<MessageSchema, "zh-CN">({
  legacy: false,
  locale: "zh-CN",
  fallbackLocale: "zh-CN",
  messages: {
    "zh-CN": zhCN,
  },
});

export { i18n };
