2026-02-02 10:00:51 +08:00
|
|
|
import { createI18n } from "vue-i18n";
|
|
|
|
|
import { zh_CNMessages } from "./zh_CN";
|
|
|
|
|
import { en_USMessages } from "./en_US";
|
|
|
|
|
|
|
|
|
|
export interface messagesInterface {
|
|
|
|
|
nav: {
|
|
|
|
|
home: string;
|
|
|
|
|
about: string;
|
2026-02-26 22:23:54 +08:00
|
|
|
demo: string;
|
|
|
|
|
join: string;
|
2026-02-02 10:00:51 +08:00
|
|
|
theme: string;
|
|
|
|
|
locale: string;
|
2026-02-16 02:12:51 +08:00
|
|
|
login: string;
|
|
|
|
|
register: string;
|
2026-02-18 01:08:26 +08:00
|
|
|
logout: string;
|
2026-02-18 01:19:02 +08:00
|
|
|
logout_more_title: string;
|
|
|
|
|
logout_more: string;
|
|
|
|
|
login_more_title: string;
|
|
|
|
|
login_more: string;
|
2026-02-16 02:12:51 +08:00
|
|
|
};
|
|
|
|
|
auth: {
|
|
|
|
|
login: string;
|
2026-02-18 01:08:26 +08:00
|
|
|
login_password: string;
|
|
|
|
|
login_phone: string;
|
2026-02-16 02:12:51 +08:00
|
|
|
register: string;
|
|
|
|
|
email: string;
|
|
|
|
|
password: string;
|
|
|
|
|
remember_me: string;
|
|
|
|
|
forget_password: string;
|
|
|
|
|
no_account: string;
|
|
|
|
|
agree_terms: string;
|
|
|
|
|
have_account: string;
|
2026-02-18 01:08:26 +08:00
|
|
|
logout: string;
|
2026-02-18 01:19:02 +08:00
|
|
|
scan_qr: string;
|
|
|
|
|
scan_qr_more: string;
|
|
|
|
|
not_open: string;
|
|
|
|
|
};
|
|
|
|
|
home: {
|
|
|
|
|
welcome: string;
|
|
|
|
|
intro_line1: string;
|
|
|
|
|
intro_line2: string;
|
|
|
|
|
intro_line3: string;
|
|
|
|
|
read_doc: string;
|
2026-02-02 10:00:51 +08:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const i18n = createI18n({
|
|
|
|
|
legacy: false,
|
|
|
|
|
locale: "ZH",
|
|
|
|
|
fallbackLocale: "EN",
|
|
|
|
|
messages: {
|
|
|
|
|
ZH: zh_CNMessages,
|
|
|
|
|
EN: en_USMessages,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default i18n;
|