Skip to content
i18n-error-base
English
Esc
↑↓navigate↵open⌘Jpreview
On this page

Installation

How to install i18n-error-base and its requirements.

Requirements

  • A runtime that can handle ES modules, such as Node.js.
  • valibot@^1.0.0 is required as a peer dependency.

message follows lang from Valibot’s getGlobalConfig().

Installation

npm install i18n-error-base
pnpm add i18n-error-base
yarn add i18n-error-base
bun add i18n-error-base
nub add i18n-error-base
aube add i18n-error-base

If Valibot is not installed yet, add it as well.

npm install valibot
pnpm add valibot
yarn add valibot
bun add valibot
nub add valibot
aube add valibot

Import

import { I18nErrorBase, setErrorMessage } from "i18n-error-base";
import type { ErrorMeta, ErrorOptions, I18nErrorBaseParams, MessageFactory } from "i18n-error-base";

Next steps

See Usage for definition and switching basics.

Was this page helpful?