1 Star 2 Fork 0

joeslee / ant-design

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index-with-locales.js 287 Bytes
一键复制 编辑 原始数据 按行查看 历史
Wei Zhu 提交于 2017-02-17 09:36 . fix: build dist with locales (#4910)
const antd = require('./components');
const req = require.context('./components', true, /^\.\/locale-provider\/.+_.+\.tsx$/);
antd.locales = {};
req.keys().forEach((mod) => {
const match = mod.match(/\/([^/]+).tsx$/);
antd.locales[match[1]] = req(mod);
});
module.exports = antd;
1
https://gitee.com/joeslee/ant-design.git
git@gitee.com:joeslee/ant-design.git
joeslee
ant-design
ant-design
master

搜索帮助