fix(notifications): zh-CN for the display-time settings, and review leftovers (#564)

- zh-CN entries for the two new rows (label and description).
- The toast test header still described the dropped drawer logging, and the
  noise test typed three members nothing uses any more.
- clickNotification's closing brace had been re-indented by accident.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer
2026-10-10 02:55:49 +02:00
parent 7c4ad22f9c
commit d8c23210bb
4 changed files with 8 additions and 7 deletions
-3
View File
@@ -24,9 +24,6 @@ type Manager = {
normalizePreferences: (preferences: Record<string, unknown>) => NotificationPreferences;
notify: (notification: Record<string, unknown>) => void;
getToastDurationMs: () => number;
unreadCount: number;
markAllRead: () => void;
clearAll: () => void;
};
const openWindows: JSDOM[] = [];
+2 -3
View File
@@ -1,7 +1,6 @@
/**
* @fileoverview showToast() display time and drawer logging: a toast with no explicit
* `duration` uses the notification preference, an explicit `duration` (0 = sticky) still wins,
* and every toast is recorded in the notification drawer.
* @fileoverview showToast() display time: a toast with no explicit `duration` uses the
* notification preference, and an explicit `duration` (0 = sticky) still wins.
*/
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';