()
| 76 | } |
| 77 | |
| 78 | getLastText() { |
| 79 | const timestamp = Number(this.getLastTimestamp()); |
| 80 | if (Number.isNaN(timestamp)) return ''; |
| 81 | const dt = new IntlDateTime(Number(timestamp)); |
| 82 | const time = dt.getRelativeNowText('Progress', { style: 'long' }); |
| 83 | if (!dt.isValidDate()) return ''; |
| 84 | if (dt.isNow()) return api.storage.lang('bookmarksItem_now'); |
| 85 | return api.storage.lang(`prediction_Last_${this.type}`, [time]); |
| 86 | } |
| 87 | |
| 88 | getAuto() { |
| 89 | const preT = this.getPrediction(); |
no test coverage detected