nz-i18n.interface.d.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { Locale } from 'date-fns';
  6. export interface NzPaginationI18nInterface {
  7. items_per_page: string;
  8. jump_to: string;
  9. jump_to_confirm: string;
  10. page: string;
  11. prev_page: string;
  12. next_page: string;
  13. prev_5: string;
  14. next_5: string;
  15. prev_3: string;
  16. next_3: string;
  17. }
  18. export interface NzGlobalI18nInterface {
  19. placeholder: string;
  20. }
  21. export interface NzDatePickerI18nInterface {
  22. lang: NzDatePickerLangI18nInterface;
  23. timePickerLocale: NzTimePickerI18nInterface;
  24. }
  25. export interface NzCalendarI18nInterface {
  26. today: string;
  27. now: string;
  28. backToToday: string;
  29. ok: string;
  30. clear: string;
  31. month: string;
  32. year: string;
  33. timeSelect: string;
  34. dateSelect: string;
  35. monthSelect: string;
  36. yearSelect: string;
  37. decadeSelect: string;
  38. yearFormat: string;
  39. monthFormat?: string;
  40. dateFormat: string;
  41. dayFormat: string;
  42. dateTimeFormat: string;
  43. monthBeforeYear?: boolean;
  44. previousMonth: string;
  45. nextMonth: string;
  46. previousYear: string;
  47. nextYear: string;
  48. previousDecade: string;
  49. nextDecade: string;
  50. previousCentury: string;
  51. nextCentury: string;
  52. }
  53. export interface NzDatePickerLangI18nInterface extends NzCalendarI18nInterface {
  54. placeholder?: string;
  55. yearPlaceholder?: string;
  56. quarterPlaceholder?: string;
  57. monthPlaceholder?: string;
  58. weekPlaceholder?: string;
  59. rangePlaceholder?: string[];
  60. rangeYearPlaceholder?: string[];
  61. rangeQuarterPlaceholder?: string[];
  62. rangeMonthPlaceholder?: string[];
  63. rangeWeekPlaceholder?: string[];
  64. }
  65. export interface NzTimePickerI18nInterface {
  66. placeholder?: string;
  67. rangePlaceholder?: string[];
  68. }
  69. export type ValidateMessage = string | (() => string);
  70. export type NzCascaderI18nInterface = NzGlobalI18nInterface;
  71. export interface NzTableI18nInterface {
  72. filterTitle?: string;
  73. filterConfirm?: string;
  74. filterReset?: string;
  75. selectAll?: string;
  76. selectInvert?: string;
  77. selectionAll?: string;
  78. sortTitle?: string;
  79. expand?: string;
  80. collapse?: string;
  81. triggerDesc?: string;
  82. triggerAsc?: string;
  83. cancelSort?: string;
  84. }
  85. export interface NzModalI18nInterface {
  86. okText: string;
  87. cancelText: string;
  88. justOkText: string;
  89. }
  90. export interface NzPopconfirmI18nInterface {
  91. okText: string;
  92. cancelText: string;
  93. }
  94. export interface NzTransferI18nInterface {
  95. titles?: string[];
  96. searchPlaceholder?: string;
  97. itemUnit?: string;
  98. itemsUnit?: string;
  99. }
  100. export interface NzUploadI18nInterface {
  101. uploading?: string;
  102. removeFile?: string;
  103. uploadError?: string;
  104. previewFile?: string;
  105. downloadFile?: string;
  106. }
  107. export interface NzEmptyI18nInterface {
  108. description: string;
  109. }
  110. export interface NzTextI18nInterface {
  111. edit: string;
  112. copy: string;
  113. copied: string;
  114. expand: string;
  115. }
  116. export interface NzCronExpressionLabelI18n {
  117. second?: string;
  118. minute?: string;
  119. hour?: string;
  120. day?: string;
  121. month?: string;
  122. week?: string;
  123. }
  124. export interface NzCronExpressionCronErrorI18n {
  125. cronError?: string;
  126. }
  127. export type NzCronExpressionI18nInterface = NzCronExpressionCronErrorI18n & NzCronExpressionLabelI18n;
  128. export interface NzQRCodeI18nInterface {
  129. expired: string;
  130. refresh: string;
  131. scanned: string;
  132. }
  133. export interface NzCheckListI18nInterface {
  134. checkList: string;
  135. checkListFinish: string;
  136. checkListClose: string;
  137. checkListFooter: string;
  138. checkListCheck: string;
  139. ok: string;
  140. cancel: string;
  141. checkListCheckOther: string;
  142. }
  143. export interface NzI18nInterface {
  144. locale: string;
  145. Pagination: NzPaginationI18nInterface;
  146. DatePicker: NzDatePickerI18nInterface;
  147. TimePicker: NzTimePickerI18nInterface;
  148. Calendar: NzDatePickerI18nInterface;
  149. global?: NzGlobalI18nInterface;
  150. Table: NzTableI18nInterface;
  151. Modal: NzModalI18nInterface;
  152. Popconfirm: NzPopconfirmI18nInterface;
  153. Transfer: NzTransferI18nInterface;
  154. Upload: NzUploadI18nInterface;
  155. Empty: NzEmptyI18nInterface;
  156. Text?: NzTextI18nInterface;
  157. CronExpression?: NzCronExpressionI18nInterface;
  158. QRCode?: NzQRCodeI18nInterface;
  159. CheckList?: NzCheckListI18nInterface;
  160. }
  161. export type DateLocale = Locale;