Skip to content

Commit

Permalink
fix(invalid_type message): running translation for invalid_type error…
Browse files Browse the repository at this point in the history
… parameters
  • Loading branch information
adamtrll committed Nov 26, 2024
1 parent bdbf1b3 commit c8898af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8898af

Please sign in to comment.