vva-cli
Version:
A CLI of Vue 3 and Typescript and Element-plus in Vite
15 lines (11 loc) • 331 B
text/typescript
import { createI18n } from "vue-i18n";
import messages from "./index";
import { getLocalStore } from "helper/utils";
import { LANG_KEY } from "config/others";
const lang = getLocalStore(LANG_KEY) || "<%= language %>";
const i18n = createI18n({
legacy: false,
locale: lang,
messages,
});
export default i18n;