index.js 589 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';
陈浩玮's avatar
陈浩玮 committed
5 6
import InputLang from './input';
import OtherLang from './other';
水落(YangLei)'s avatar
水落(YangLei) committed
7 8 9 10 11 12 13 14 15 16 17 18 19

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
20 21 22
formatLang(tableLang);
formatLang(userLang);
formatLang(systemLang);
陈浩玮's avatar
陈浩玮 committed
23 24
formatLang(InputLang);
formatLang(OtherLang);
水落(YangLei)'s avatar
水落(YangLei) committed
25 26

export { en_US, zh_CN };