robust-validator
Version:
Rule-based data validation library
7 lines (6 loc) • 470 B
TypeScript
import { ILocale } from "./Interface";
import { RuleType, LanguageType } from "./Types";
export declare const setLocales: (values: ILocale[] | ILocale) => void;
export declare const getLoadedLocales: () => string[];
export declare const addCustomLocale: (locale: LanguageType, ruleName: string, translation: string) => void;
export declare const getMessage: (rule: RuleType, params: any[], language: LanguageType, customTranslations?: Record<string, string>) => string;