@@ -319,17 +319,20 @@ class TurboEngineConfigService @Autowired constructor(
319
319
paramConfig = paramConfig?.map {
320
320
ParamConfigModel (
321
321
paramKey = it.paramKey,
322
- paramName = it.paramName,
322
+ paramName = I18NUtil .getMessage( " $engineCode .paramConfig. ${ it.paramKey} . paramName" ) ,
323
323
paramType = it.paramType,
324
324
paramProps = it.paramProps,
325
325
paramEnum = it.paramEnum?.map { paramEnumEntity ->
326
+ val paramName = I18NUtil .getMessage(" $engineCode .paramConfig.${it.paramKey
327
+ } .paramEnum.${paramEnumEntity.paramValue} " )
326
328
ParamEnumModel (
327
329
paramValue = paramEnumEntity.paramValue,
328
330
paramName = paramEnumEntity.paramName,
329
331
visualRange = paramEnumEntity.visualRange
330
332
)
331
333
},
332
- tips = it.tips,
334
+ tips = if (! it.tips.isNullOrBlank()) I18NUtil .getMessage(" $engineCode .paramConfig.${it
335
+ .paramKey} .tips" ) else it.tips,
333
336
displayed = it.displayed,
334
337
defaultValue = it.defaultValue,
335
338
required = it.required
@@ -587,10 +590,12 @@ class TurboEngineConfigService @Autowired constructor(
587
590
paramEnumEntity.visualRange.isNullOrEmpty() ||
588
591
paramEnumEntity.visualRange.contains(projectId)
589
592
}?.map { paramEnumEntity ->
593
+ // 兼容部分无需国际化的值
594
+ val paramName = I18NUtil .getMessage(" ${it.engineCode} .paramConfig.${param.paramKey
595
+ } .paramEnum.${paramEnumEntity.paramValue} " )
590
596
ParamEnumModel (
591
597
paramValue = paramEnumEntity.paramValue,
592
- paramName = I18NUtil .getMessage(" ${it.engineCode} .paramConfig.${param.paramKey
593
- } .paramEnum.${paramEnumEntity.paramValue} " ),
598
+ paramName = if (I18NUtil .ERROR == paramName) paramEnumEntity.paramName else paramName,
594
599
visualRange = paramEnumEntity.visualRange
595
600
)
596
601
},
0 commit comments