Skip to content

v0.8.6

Choose a tag to compare

@hxx0611 hxx0611 released this 20 Aug 04:15
· 18 commits to main since this release

v0.8.6 — Phase 11I: Channel-Level Notification Language

Added

  • Per-channel notification language for Telegram: notification_channels.config gains optional language (en / zh-CN), default en — no schema/migration change, existing channels unchanged
  • buildTelegramMessage(event, hostname, language) localizes template labels (app title / event / domain / status / time / event ID) and event labels; machine state values stay canonical (ok / down / server_error / client_error, HTTP status codes) to avoid ambiguity
  • Channel edit UI: Notification Language dropdown (English / 简体中文); saveTelegramChannelAction validates (invalid_language) and persists with config
  • New src/lib/notifications/i18n.ts dictionary + integrity tests (identical key sets across languages)
  • Language is independent from the UI locale (cookie-based)

Scope

  • Telegram only (webhook / email channels adopt the dictionary later)

Quality

  • 800 tests (54 files) — 15 new (parse/ignore language, zh-CN rendering incl. test-notification label, sender body language, action persistence/validation, toChannelView display); tsc 0, lint 0, prettier PASS, build PASS (BUILD_ID CVfpMJqXYG7srT4aZ4GAt)