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

x/valibot/src/storages/globalMessage/globalMessage.ts>setGlobalMessage

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function setGlobalMessage
import { setGlobalMessage } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/storages/globalMessage/globalMessage.ts";

Sets a global error message.

Parameters

message: ErrorMessage<BaseIssue<unknown>>

The error message.

optional
lang: string

The language of the message.