react-native-paper-dates
Version:
Performant Date Picker for React Native Paper
22 lines • 912 B
TypeScript
export type TranslationsType = {
selectSingle: string;
selectMultiple: string;
selectRange: string;
save: string;
notAccordingToDateFormat: (inputFormat: string) => string;
mustBeHigherThan: (date: string) => string;
mustBeLowerThan: (date: string) => string;
mustBeBetween: (startDate: string, endDate: string) => string;
dateIsDisabled: string;
previous: string;
next: string;
typeInDate: string;
pickDateFromCalendar: string;
close: string;
hour: string;
minute: string;
};
export type TranslationResolver = (locale: string | undefined) => TranslationsType;
export declare function getTranslation<K extends keyof TranslationsType>(locale: string | undefined, key: K, fallback?: any): any;
export declare function registerTranslation(locale: string, translations: TranslationsType | TranslationResolver): void;
//# sourceMappingURL=utils.d.ts.map