mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
12 lines
286 B
JavaScript
12 lines
286 B
JavaScript
const antd = require('./components')
|
|
const req = require.context('./components', true, /^\.\/locale-provider\/.+_.+\.js$/)
|
|
|
|
antd.locales = {}
|
|
|
|
req.keys().forEach((mod) => {
|
|
const match = mod.match(/\/([^/]+).js$/)
|
|
antd.locales[match[1]] = req(mod).default
|
|
})
|
|
|
|
module.exports = antd
|