fix: dist locale file lose #3684

pull/4171/head
tanjinzhou 2021-06-07 14:37:38 +08:00
parent 0d02391127
commit 62ca3a91f4
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ const req = require.context('./components', true, /^\.\/locale-provider\/(?!__te
antd.locales = {};
req.keys().forEach(mod => {
const match = mod.match(/\/([^/]+).js$/);
const match = mod.match(/\/([^/]+).ts$/);
antd.locales[match[1]] = req(mod).default;
});