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