From 62ca3a91f4bde0b8ef41d12f095ee32e4f72f2f5 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 7 Jun 2021 14:37:38 +0800 Subject: [PATCH] fix: dist locale file lose #3684 --- index-with-locales.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index-with-locales.js b/index-with-locales.js index 8f2d3a1d6..f094476c9 100644 --- a/index-with-locales.js +++ b/index-with-locales.js @@ -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; });