index.d.ts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import * as React from 'react';
  2. import type { ValidateMessages } from 'rc-field-form/lib/interface';
  3. import type { PickerLocale as DatePickerLocale } from '../date-picker/generatePicker';
  4. import type { TransferLocale as TransferLocaleForEmpty } from '../empty';
  5. import type { ModalLocale } from '../modal/locale';
  6. import type { PaginationLocale } from '../pagination/Pagination';
  7. import type { PopconfirmLocale } from '../popconfirm/PurePanel';
  8. import type { TableLocale } from '../table/interface';
  9. import type { TourLocale } from '../tour/interface';
  10. import type { TransferLocale } from '../transfer';
  11. import type { UploadLocale } from '../upload/interface';
  12. export { default as useLocale } from './useLocale';
  13. export declare const ANT_MARK = "internalMark";
  14. export interface Locale {
  15. locale: string;
  16. Pagination?: PaginationLocale;
  17. DatePicker?: DatePickerLocale;
  18. TimePicker?: Record<string, any>;
  19. Calendar?: Record<string, any>;
  20. Table?: TableLocale;
  21. Modal?: ModalLocale;
  22. Tour?: TourLocale;
  23. Popconfirm?: PopconfirmLocale;
  24. Transfer?: TransferLocale;
  25. Select?: Record<string, any>;
  26. Upload?: UploadLocale;
  27. Empty?: TransferLocaleForEmpty;
  28. global?: {
  29. placeholder?: string;
  30. close?: string;
  31. };
  32. Icon?: Record<string, any>;
  33. Text?: {
  34. edit?: any;
  35. copy?: any;
  36. copied?: any;
  37. expand?: any;
  38. collapse?: any;
  39. };
  40. Form?: {
  41. optional?: string;
  42. defaultValidateMessages: ValidateMessages;
  43. };
  44. Image?: {
  45. preview: string;
  46. };
  47. QRCode?: {
  48. expired?: string;
  49. refresh?: string;
  50. scanned?: string;
  51. };
  52. ColorPicker?: {
  53. presetEmpty: string;
  54. transparent: string;
  55. singleColor: string;
  56. gradientColor: string;
  57. };
  58. }
  59. export interface LocaleProviderProps {
  60. locale: Locale;
  61. children?: React.ReactNode;
  62. }
  63. declare const LocaleProvider: React.FC<LocaleProviderProps>;
  64. export default LocaleProvider;