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

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

export { en_US, zh_CN };