mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 08:58:15 +00:00
Merge branch 'develop' into release/1.1.11-beta
This commit is contained in:
commit
71b3c057cc
@ -9,10 +9,10 @@ const instance: Record<string, Record<string, string>> = {
|
||||
|
||||
export function createIntl(locale: string = 'zh-CN') {
|
||||
const intl = (id: string) => {
|
||||
return instance[locale][id];
|
||||
return instance[locale]?.[id] || id;
|
||||
};
|
||||
|
||||
const intlNode = (id: string) => createElement('span', instance[locale][id]);
|
||||
const intlNode = (id: string) => createElement('span', instance[locale]?.[id] || id);
|
||||
|
||||
return {
|
||||
intl,
|
||||
|
||||
@ -52,11 +52,11 @@ const bizNameColors = [
|
||||
'#2e8b57',
|
||||
];
|
||||
const bodyColors: Record<string, string> = {
|
||||
debug: '#666666',
|
||||
log: '#bbbbbb',
|
||||
info: '#ffffff',
|
||||
warn: '#bbbbbb',
|
||||
error: '#bbbbbb',
|
||||
debug: '#fadb14',
|
||||
log: '#8c8c8c',
|
||||
info: '#52c41a',
|
||||
warn: '#fa8c16',
|
||||
error: '#ff4d4f',
|
||||
};
|
||||
const levelMarks: Record<string, string> = {
|
||||
debug: 'debug',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user