/** Locale dictionary */ export type LocaleDictionary = { [key: string]: string; }; export type LocaleEnums = { [enumName: string]: { [enumItem: string]: string; }; }; /** Locale Error Translator */ export type LocaleErrorTranslator = (error: any) => string; /** Form validation error translators */ export type FormErrors = { [key: string]: LocaleErrorTranslator; }; /** Locale data */ export interface LocaleData { /** Locale name */ readonly name: string; /** Does this locale belongs to a RTL language */ readonly rtl?: boolean; /** Locale dictionary */ dictionary?: LocaleDictionary; enums?: LocaleEnums; form?: { errors?: FormErrors; }; }