2019-01-12 03:33:27 +00:00
|
|
|
const antd = require('./components');
|
2021-03-04 13:39:11 +00:00
|
|
|
const req = require.context('./components', true, /^\.\/locale-provider\/(?!__tests__).+_.+\.ts$/);
|
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;
|