We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98986e commit dbbdec7Copy full SHA for dbbdec7
framework/elsa/fit-elsa-react/package.json
@@ -12,7 +12,9 @@
12
".": {
13
"import": "./build/elsa-react.js",
14
"require": "./build/elsa-react.umd.cjs"
15
- }
+ },
16
+ "./locales/en.json": "./src/i18n/en_US.json",
17
+ "./locales/zh.json": "./src/i18n/zh_CN.json"
18
},
19
"scripts": {
20
"dev": "vite",
…ework/elsa/fit-elsa-react/src/en_US.json …/elsa/fit-elsa-react/src/i18n/en_US.jsonframework/elsa/fit-elsa-react/src/en_US.json renamed to framework/elsa/fit-elsa-react/src/i18n/en_US.json
framework/elsa/fit-elsa-react/src/i18n.js …ork/elsa/fit-elsa-react/src/i18n/i18n.jsframework/elsa/fit-elsa-react/src/i18n.js renamed to framework/elsa/fit-elsa-react/src/i18n/i18n.js
…ework/elsa/fit-elsa-react/src/zh_CN.json …/elsa/fit-elsa-react/src/i18n/zh_CN.jsonframework/elsa/fit-elsa-react/src/zh_CN.json renamed to framework/elsa/fit-elsa-react/src/i18n/zh_CN.json
framework/elsa/fit-elsa-react/src/main.jsx
@@ -6,7 +6,7 @@
6
7
import ReactDOM from 'react-dom/client';
8
import App from './App.jsx';
9
-import i18n from './i18n.js';
+import i18n from './i18n/i18n.js';
10
11
ReactDOM.createRoot(document.getElementById('root')).render(
// 打开strictMode会导致每个组件被加载两次,测试某些功能时可以打开
0 commit comments