Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/utils/i18n/index.ts>i18n

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function i18n
import { i18n } from "https://deno.land/x/valibot@v0.30.0/src/utils/i18n/index.ts";

Creates the i18n error message.

Parameters

schema: boolean

Whether its a schema.

context: I18nContext

The message context.

reference: Function

The identifier reference.

config: SchemaConfig | undefined

The parse configuration.

The issue.

Returns

string

The error message.