Installation
Så installerar du i18n-error-base samt kraven för användning.
Krav
- En körningsmiljö som kan hantera ES-moduler, t.ex. Node.js
valibot@^1.0.0krävs som peer-beroende
message följer lang från Valibots getGlobalConfig().
Installation
npm install i18n-error-basepnpm add i18n-error-baseyarn add i18n-error-basebun add i18n-error-basenub add i18n-error-baseaube add i18n-error-baseOm Valibot inte är installerat ännu lägger du till det också.
npm install valibotpnpm add valibotyarn add valibotbun add valibotnub add valibotaube add valibotImport
import { I18nErrorBase, setErrorMessage } from "i18n-error-base";
import type { ErrorMeta, ErrorOptions, I18nErrorBaseParams, MessageFactory } from "i18n-error-base";
Nästa steg
Se Användning för definition och grunderna i att byta språk.