mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-12-15 06:40:33 +08:00
feat: add pure-admin-thin
This commit is contained in:
14
src/plugins/i18n/index.ts
Normal file
14
src/plugins/i18n/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { App } from "vue";
|
||||
import { createI18n } from "vue-i18n";
|
||||
import { localesConfigs } from "./config";
|
||||
import { storageLocal } from "/@/utils/storage";
|
||||
|
||||
export const i18n = createI18n({
|
||||
locale: storageLocal.getItem("responsive-locale")?.locale ?? "zh",
|
||||
fallbackLocale: "en",
|
||||
messages: localesConfigs
|
||||
});
|
||||
|
||||
export function usI18n(app: App) {
|
||||
app.use(i18n);
|
||||
}
|
||||
Reference in New Issue
Block a user