Skip to content

Commit 20c6fca

Browse files
committed
fix: 🐛 修正 i18n 里面的一个参数命名问题
1 parent ce531ae commit 20c6fca

File tree

1 file changed

+1
-1
lines changed
  • modules/code-generator/src/plugins/project

1 file changed

+1
-1
lines changed

modules/code-generator/src/plugins/project/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const pluginFactory: BuilderComponentPluginFactory<unknown> = () => {
7171
// 优先取直接传过来的语料
7272
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')]
7373
if (localMsg != null) {
74-
return format(localMsg, variables);
74+
return format(localMsg, t.params);
7575
}
7676
7777
// 其次用项目级别的

0 commit comments

Comments
 (0)