mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
fix: 🐛 修正 i18n 里面的一个参数命名问题
This commit is contained in:
parent
ce531aeb45
commit
20c6fca03e
@ -71,7 +71,7 @@ const pluginFactory: BuilderComponentPluginFactory<unknown> = () => {
|
|||||||
// 优先取直接传过来的语料
|
// 优先取直接传过来的语料
|
||||||
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')]
|
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')]
|
||||||
if (localMsg != null) {
|
if (localMsg != null) {
|
||||||
return format(localMsg, variables);
|
return format(localMsg, t.params);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 其次用项目级别的
|
// 其次用项目级别的
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user