Skip to content

Commit dbbdec7

Browse files
authored
[elsa] elsa-react打包时增加i18n翻译文件的导出 (#116)
1 parent f98986e commit dbbdec7

File tree

5 files changed

+4
-2
lines changed

5 files changed

+4
-2
lines changed

framework/elsa/fit-elsa-react/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
".": {
1313
"import": "./build/elsa-react.js",
1414
"require": "./build/elsa-react.umd.cjs"
15-
}
15+
},
16+
"./locales/en.json": "./src/i18n/en_US.json",
17+
"./locales/zh.json": "./src/i18n/zh_CN.json"
1618
},
1719
"scripts": {
1820
"dev": "vite",
File renamed without changes.
File renamed without changes.
File renamed without changes.

framework/elsa/fit-elsa-react/src/main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import ReactDOM from 'react-dom/client';
88
import App from './App.jsx';
9-
import i18n from './i18n.js';
9+
import i18n from './i18n/i18n.js';
1010

1111
ReactDOM.createRoot(document.getElementById('root')).render(
1212
// 打开strictMode会导致每个组件被加载两次,测试某些功能时可以打开

0 commit comments

Comments
 (0)