fix: 🐛 修正 i18n 里面的一个参数命名问题

This commit is contained in:
Clarence-pan 2022-04-10 23:56:56 +08:00 committed by Clarence Pan
parent ce531aeb45
commit 20c6fca03e

View File

@ -71,7 +71,7 @@ const pluginFactory: BuilderComponentPluginFactory<unknown> = () => {
// 优先取直接传过来的语料
const localMsg = t[locale] ?? t[String(locale).replace('-', '_')]
if (localMsg != null) {
return format(localMsg, variables);
return format(localMsg, t.params);
}
// 其次用项目级别的