1)准备工作
安装插件 => 准备翻译文件 => 全局引用 => 页面局部使用
详见 下链接 [如何在vue3中使用后i18n]
https://blog.youkuaiyun.com/weixin_39423672/article/details/118327547?spm=1001.2014.3001.5502
2)router/index.ts
import {
createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
const routes: Array<RouteRecordRaw> = [
{
path: "/login",
name: "login",
meta