Blame view

HHECS.Web/public/static/languageConfig.js 899 Bytes
胡菁 authored
1
window.$gl = (params) => {
王硕 authored
2
3
4
5
6
7
    const currentLang = localStorage.getItem('currentLang') || 'zh';
    const languageData = languageConfig[currentLang];
    if (languageData && languageData[params]) {
        return languageData[params];
    }
    return params;
胡菁 authored
8
9
10
};
// 语言配置
var languageConfig = {
王硕 authored
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    zh: {
        login: "登录",
        systemName: "华恒 ECS 系统",
        logOut: "退出",
        mainPage: "主页",
        refresh: "刷新",
        closeOthers: "关闭其他",
        closeAll: "关闭所有",
    },
    en: {
        login: "Login",
        systemName: "HuaHeng ECS System",
        logOut: "LogOut",
        mainPage: "Main Page",
        refresh: "Refresh",
        closeOthers: "Close Others",
        closeAll: "Close All",
    },
    fr: {
        login: "Connexion",
        systemName: "Système ECS HuaHeng",
        logOut: "Déconnexion",
    },
胡菁 authored
34
};
王硕 authored
35
36