2019-01-12 03:33:27 +00:00
|
|
|
const antd = require('./components');
|
|
|
|
const req = require.context('./components', true, /^\.\/locale-provider\/(?!__tests__).+_.+\.js$/);
|
2018-03-18 11:59:38 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
antd.locales = {};
|
2018-03-18 11:59:38 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
req.keys().forEach(mod => {
|
|
|
|
const match = mod.match(/\/([^/]+).js$/);
|
|
|
|
antd.locales[match[1]] = req(mod).default;
|
|
|
|
});
|
2018-03-18 11:59:38 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
module.exports = antd;
|