index.js 477 Bytes
Newer Older
水落(YangLei)'s avatar
水落(YangLei) committed
1
import selectLang from './select';
shuiluo's avatar
shuiluo committed
2 3 4
import tableLang from './table';
import userLang from './user';
import systemLang from './system';
水落(YangLei)'s avatar
水落(YangLei) committed
5 6 7 8 9 10 11 12 13 14 15 16 17

const zh_CN = {};
const en_US = {};

function formatLang(langObject) {
    for (const key in langObject) {
        const element = langObject[key];
        zh_CN[key] = element[0];
        en_US[key] = element[1];
    }
}

formatLang(selectLang);
shuiluo's avatar
shuiluo committed
18 19 20
formatLang(tableLang);
formatLang(userLang);
formatLang(systemLang);
水落(YangLei)'s avatar
水落(YangLei) committed
21 22

export { en_US, zh_CN };