mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-10 18:03:01 +00:00
15 lines
275 B
TypeScript
15 lines
275 B
TypeScript
import { createIntl } from '@alilc/lowcode-editor-core';
|
|
import enUS from './en-US.json';
|
|
import zhCN from './zh-CN.json';
|
|
|
|
const { intl } = createIntl?.({
|
|
'en-US': enUS,
|
|
'zh-CN': zhCN,
|
|
}) || {
|
|
intl: (id) => {
|
|
return zhCN[id];
|
|
},
|
|
};
|
|
|
|
export { intl, enUS, zhCN };
|