initHeader
This commit is contained in:
18
frontend/src/languages/index.ts
Normal file
18
frontend/src/languages/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { createI18n } from "vue-i18n";
|
||||
import { getBrowserLang } from "@/utils";
|
||||
|
||||
import zh from "./modules/zh";
|
||||
import en from "./modules/en";
|
||||
|
||||
const i18n = createI18n({
|
||||
// Use Composition API, Set to false
|
||||
allowComposition: true,
|
||||
legacy: false,
|
||||
locale: getBrowserLang(),
|
||||
messages: {
|
||||
zh,
|
||||
en
|
||||
}
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
Reference in New Issue
Block a user