import {JBDictionary} from 'jb-core/i18n'; export type JBSelectDictionary = { requireMessage:(label:string|null)=>string, } /** * dictionary of jb select. it's already loaded with persian and english lang but you can also extend it with you apps other language or replace already exist language * @example * ```js * import {dictionary} from 'jb-select' * dictionary.setLanguage("fr", { * requireMessage: (label:string| null)=>`${label} french require message`, * // other dictionary keys * }); * ``` */ export const dictionary = new JBDictionary({ "fa":{ requireMessage:(label:string| null)=>`${label} حتما باید انتخاب شود`, }, "en":{ requireMessage:(label:string| null)=>`${label} is required`, } });