From c8898af775eacd9745da36e73e4ff7b9e67ce25a Mon Sep 17 00:00:00 2001 From: Adam Troll Date: Tue, 26 Nov 2024 10:42:27 +0100 Subject: [PATCH] fix(invalid_type message): running translation for invalid_type error parameters --- src/runtime/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index dfc24a9..e208c1b 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -25,8 +25,8 @@ export default defineNuxtPlugin({ } else { message = t('zodI18n.errors.invalid_type', { - expected: error.expected, - received: error.received, + expected: t(`zodI18n.types.${error.expected}`), + received: t(`zodI18n.types.${error.received}`), }) } break