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

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);
17
formatLang(TableLang);
shuiluo's avatar
shuiluo committed
18
formatLang(UserLang);
水落(YangLei)'s avatar
水落(YangLei) committed
19 20

export { en_US, zh_CN };