import {JBDictionary} from 'jb-core/i18n'; export type JBPinInputDictionary = { invalidValue:string, pin:string, digitLabel:(label:string, index:number, length:number)=>string, } /** * dictionary of jb pin input. 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-pin-input' * dictionary.setLanguage("fr", { * invalidValue: "message in french", * // other dictionary keys * }); * ``` */ export const dictionary = new JBDictionary({ "fa":{ invalidValue:'کد ملی وارد شده نامعتبر است', pin:'کد امنیتی', digitLabel:(label, index, length)=>`${label}، رقم ${index} از ${length}`, }, "en":{ invalidValue:"The entered national code is invalid", pin:"PIN", digitLabel:(label, index, length)=>`${label}, digit ${index} of ${length}`, } });