import type { Locale as AntLocale } from 'antd/es/locale'; import type { PaginationLocale as AntPaginationLocale } from 'antd/es/pagination/Pagination'; import type { DrawerLocale } from '../drawer'; import type { InputLocale } from '../input'; import type { InputNumberLocale } from '../input-number'; import type { SelectLocale } from '../select'; import type { TreeSelectLocale } from '../tree-select'; import type { TableLocale } from '../table'; import type { CardLocale } from '../card'; export * from 'antd/es/locale'; export type GlobalLocale = AntLocale['global'] & { inputPlaceholder?: string; viewDocument?: string; }; export interface PaginationLocale extends AntPaginationLocale { total?: string; } export interface FilterLocale { pleaseSelect?: string; open?: string; filters?: string; apply?: string; clearAll?: string; /** 搜索框占位文案 */ search?: string; /** 无匹配结果文案 */ noResult?: string; } export interface NotificationLocale { showMore?: string; copy?: string; copied?: string; copyFailed?: string; } export interface Locale extends AntLocale { global?: GlobalLocale; Pagination?: PaginationLocale; Drawer?: DrawerLocale; Input?: InputLocale; InputNumber?: InputNumberLocale; Select?: SelectLocale; TreeSelect?: TreeSelectLocale; Table?: TableLocale; Card?: CardLocale; Filter?: FilterLocale; Notification?: NotificationLocale; } export { default as useLocale } from './useLocale';