From 2bff6aae78514fc2918bedbdeac89dd7806fa850 Mon Sep 17 00:00:00 2001 From: JacobiusMakes Date: Mon, 30 Mar 2026 07:27:12 -0400 Subject: [PATCH] fix(i18n): add missing notification text translation key (#715) (#726) The CalDAV server returns ISO 8601 durations without the T separator for date-based periods (e.g. -P1D for 1 day, -P2D for 2 days, -P1W for 1 week). The existing translation keys used -PT1D/-PT2D/-PT1W which only matched the time-based format. This caused raw keys like "event.form.notifications.-P1D" to appear in the event preview notification line. Adds -P1D, -P2D, and -P1W translation keys to all four locale files (en, fr, ru, vi) alongside the existing -PT variants. Co-authored-by: Claude Opus 4.6 (1M context) --- src/locales/en.json | 3 +++ src/locales/fr.json | 3 +++ src/locales/ru.json | 3 +++ src/locales/vi.json | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/locales/en.json b/src/locales/en.json index 0fc830c..3b0e8f0 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -177,8 +177,11 @@ "-PT5H": "5 hours before", "-PT12H": "12 hours before", "-PT1D": "1 day before", + "-P1D": "1 day before", "-PT2D": "2 days before", + "-P2D": "2 days before", "-PT1W": "1 week before", + "-P1W": "1 week before", "EMAIL": "email", "DISPLAY": "display", "AUDIO": "audio" diff --git a/src/locales/fr.json b/src/locales/fr.json index 1c4f98c..89bb347 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -178,8 +178,11 @@ "-PT5H": "5 heures avant", "-PT12H": "12 heures avant", "-PT1D": "1 jour avant", + "-P1D": "1 jour avant", "-PT2D": "2 jours avant", + "-P2D": "2 jours avant", "-PT1W": "1 semaine avant", + "-P1W": "1 semaine avant", "EMAIL": "e-mail", "DISPLAY": "affichage", "AUDIO": "audio" diff --git a/src/locales/ru.json b/src/locales/ru.json index 4a8b792..7d597fa 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -178,8 +178,11 @@ "-PT5H": "За 5 часов", "-PT12H": "За 12 часов", "-PT1D": "За 1 день", + "-P1D": "За 1 день", "-PT2D": "За 2 дня", + "-P2D": "За 2 дня", "-PT1W": "За 1 неделю", + "-P1W": "За 1 неделю", "EMAIL": "Email", "DISPLAY": "Отображение", "AUDIO": "Звук" diff --git a/src/locales/vi.json b/src/locales/vi.json index 27d9563..b6a81dc 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -176,8 +176,11 @@ "-PT5H": "5 giờ trước", "-PT12H": "12 giờ trước", "-PT1D": "1 ngày trước", + "-P1D": "1 ngày trước", "-PT2D": "2 ngày trước", + "-P2D": "2 ngày trước", "-PT1W": "1 tuần trước", + "-P1W": "1 tuần trước", "EMAIL": "email", "DISPLAY": "hiển thị", "AUDIO": "âm thanh"