(options: DateContextMenuOptions)
| 74 | private options: DateContextMenuOptions; |
| 75 | |
| 76 | constructor(options: DateContextMenuOptions) { |
| 77 | this.menu = new ContextMenu(); |
| 78 | this.options = options; |
| 79 | this.buildMenu(); |
| 80 | } |
| 81 | |
| 82 | private t(key: string, fallback?: string, params?: Record<string, string | number>): string { |
| 83 | return this.options.plugin?.i18n.translate(key, params) || fallback || key; |