fix(calendar): add translations for the all-day expand toggle

The expand/collapse toggle referenced calendar.events.show_more and
show_less, which were missing from every locale (translations test failed),
and passed a defaultMessage option next-intl does not support. Add both keys
to all 27 locales, reusing each locale's existing email_composer.show_less
wording, and drop the unsupported option.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian Sanitz
2026-09-29 00:08:15 +02:00
co-authored by Claude Opus 5.5
parent ea6d0ee678
commit 695cc7303f
28 changed files with 55 additions and 1 deletions
+1 -1
View File
@@ -371,7 +371,7 @@ export function CalendarWeekView({
aria-expanded={isAllDayExpanded}
onClick={() => setIsAllDayExpanded((prev) => !prev)}
className="self-end mt-auto text-[10px] text-muted-foreground hover:text-foreground flex items-center gap-0.5 rounded px-1 py-0.5 hover:bg-muted transition-colors cursor-pointer"
title={isAllDayExpanded ? t("events.show_less", { defaultMessage: "Weniger anzeigen" }) : t("events.show_more", { defaultMessage: "Mehr anzeigen" })}
title={isAllDayExpanded ? t("events.show_less") : t("events.show_more")}
>
{isAllDayExpanded ? (
<span>▲</span>
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "لا توجد أحداث",
"all_day": "طوال اليوم",
"more": "+{count} أخرى",
"show_more": "إظهار المزيد",
"show_less": "إظهار أقل",
"no_title": "(بلا عنوان)",
"resize": "تغيير حجم الحدث",
"duplicate": "تكرار",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Cap esdeveniment",
"all_day": "Tot el dia",
"more": "+{count} més",
"show_more": "Mostra'n més",
"show_less": "Mostra'n menys",
"no_title": "(Sense títol)",
"resize": "Redimensiona l'esdeveniment",
"duplicate": "Duplica",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Žádné události",
"all_day": "Celý den",
"more": "+{count} dalších",
"show_more": "Zobrazit více",
"show_less": "Zobrazit méně",
"no_title": "(Bez názvu)",
"resize": "Změnit velikost události",
"duplicate": "Duplikovat",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Ingen begivenheder",
"all_day": "Hele dagen",
"more": "+{count} mere",
"show_more": "Vis mere",
"show_less": "Vis mindre",
"no_title": "(Ingen titel)",
"resize": "Tilpas størrelse på begivenhed",
"duplicate": "Duplikér",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Keine Termine",
"all_day": "Ganztägig",
"more": "+{count} weitere",
"show_more": "Mehr anzeigen",
"show_less": "Weniger anzeigen",
"no_title": "(Kein Titel)",
"resize": "Termingröße ändern",
"duplicate": "Duplizieren",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "No events",
"all_day": "All day",
"more": "+{count} more",
"show_more": "Show more",
"show_less": "Show less",
"no_title": "(No title)",
"resize": "Resize event",
"duplicate": "Duplicate",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Sin eventos",
"all_day": "Todo el día",
"more": "+{count} más",
"show_more": "Mostrar más",
"show_less": "Mostrar menos",
"no_title": "(Sin título)",
"resize": "Redimensionar evento",
"duplicate": "Duplicar",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "رویدادی نیست",
"all_day": "تمام روز",
"more": "+{count} بیشتر",
"show_more": "نمایش بیشتر",
"show_less": "نمایش کمتر",
"no_title": "(بدون عنوان)",
"resize": "تغییر اندازه رویداد",
"duplicate": "کپی",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Aucun événement",
"all_day": "Toute la journée",
"more": "+{count} de plus",
"show_more": "Afficher plus",
"show_less": "Afficher moins",
"no_title": "(Sans titre)",
"resize": "Redimensionner l'événement",
"duplicate": "Dupliquer",
+2
View File
@@ -2773,6 +2773,8 @@
"no_events": "אין אירועים",
"all_day": "כל היום",
"more": "+{count}נוספים",
"show_more": "הצג עוד",
"show_less": "הצג פחות",
"no_title": "(ללא כותרת)",
"resize": "שנה את גודל האירוע",
"duplicate": "שכפול",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Nincs esemény",
"all_day": "Egész napos",
"more": "+{count} további",
"show_more": "Több mutatása",
"show_less": "Kevesebb mutatása",
"no_title": "(Nincs cím)",
"resize": "Esemény átméretezése",
"duplicate": "Duplikálás",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Nessun evento",
"all_day": "Tutto il giorno",
"more": "+{count} altri",
"show_more": "Mostra di più",
"show_less": "Mostra meno",
"no_title": "(Senza titolo)",
"resize": "Ridimensiona evento",
"duplicate": "Duplica",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "予定なし",
"all_day": "終日",
"more": "他{count}件",
"show_more": "展開する",
"show_less": "折りたたむ",
"no_title": "(タイトルなし)",
"resize": "イベントのサイズ変更",
"duplicate": "複製",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "일정이 없어요",
"all_day": "하루 종일",
"more": "+{count}개 더보기",
"show_more": "더 보기",
"show_less": "간략히 보기",
"no_title": "(제목 없음)",
"resize": "일정 크기 조절",
"duplicate": "복제",
+2
View File
@@ -2848,6 +2848,8 @@
"no_events": "Nav pasākumu",
"all_day": "Visa diena",
"more": "vēl {count}",
"show_more": "Rādīt vairāk",
"show_less": "Rādīt mazāk",
"no_title": "(Bez virsraksta)",
"resize": "Mainīt pasākuma laiku",
"duplicate": "Dublēt",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Үйл явдал байхгүй",
"all_day": "Бүтэн өдөр",
"more": "+{count} дэлгэрэнгүй",
"show_more": "Илүү харуулах",
"show_less": "Бага харуулах",
"no_title": "(Гарчиггүй)",
"resize": "Үйл явдлын хэмжээг өөрчлөх",
"duplicate": "Давхардсан",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Ingen hendelser",
"all_day": "Hele dagen",
"more": "+{count} til",
"show_more": "Vis flere",
"show_less": "Vis færre",
"no_title": "(Ingen tittel)",
"resize": "Endre størrelsen på hendelsen",
"duplicate": "Dupliser",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Geen evenementen",
"all_day": "Hele dag",
"more": "+{count} meer",
"show_more": "Meer tonen",
"show_less": "Minder tonen",
"no_title": "(Geen titel)",
"resize": "Evenement formaat wijzigen",
"duplicate": "Dupliceren",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Brak wydarzeń",
"all_day": "Cały dzień",
"more": "+{count} więcej",
"show_more": "Pokaż więcej",
"show_less": "Pokaż mniej",
"no_title": "(Bez tytułu)",
"resize": "Zmień rozmiar wydarzenia",
"duplicate": "Duplikuj",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Nenhum evento",
"all_day": "Dia inteiro",
"more": "+{count} mais",
"show_more": "Mostrar mais",
"show_less": "Mostrar menos",
"no_title": "(Sem título)",
"resize": "Redimensionar evento",
"duplicate": "Duplicar",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Fără evenimente",
"all_day": "Toată ziua",
"more": "+{count} mai multe",
"show_more": "Afișați mai mult",
"show_less": "Afișați mai puțin",
"no_title": "(Fără titlu)",
"resize": "Eveniment de redimensionare",
"duplicate": "Duplicare",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Нет событий",
"all_day": "Весь день",
"more": "ещё {count}",
"show_more": "Развернуть",
"show_less": "Свернуть",
"no_title": "(Без названия)",
"resize": "Изменить размер события",
"duplicate": "Дублировать",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Žiadne udalosti",
"all_day": "Celý deň",
"more": "+{count} ďalších",
"show_more": "Zobraziť viac",
"show_less": "Zobraziť menej",
"no_title": "(Bez názvu)",
"resize": "Zmeniť veľkosť udalosti",
"duplicate": "Duplikovať",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Etkinlik yok",
"all_day": "Tüm gün",
"more": "+{count} daha",
"show_more": "Daha fazla göster",
"show_less": "Daha az göster",
"no_title": "(Başlık yok)",
"resize": "Etkinliği yeniden boyutlandır",
"duplicate": "Çoğalt",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "Подій немає",
"all_day": "Весь день",
"more": "+ ще {count}",
"show_more": "Показувати більше",
"show_less": "Показувати менше",
"no_title": "(Без назви)",
"resize": "Змінити розмір події",
"duplicate": "дублікат",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "沒有活動",
"all_day": "全天",
"more": "另有 {count} 個",
"show_more": "顯示更多",
"show_less": "顯示較少",
"no_title": "(無標題)",
"resize": "調整活動大小",
"duplicate": "建立副本",
+2
View File
@@ -2849,6 +2849,8 @@
"no_events": "没有活动",
"all_day": "全天",
"more": "+{count} 更多",
"show_more": "展开",
"show_less": "收起",
"no_title": "(无标题)",
"resize": "调整事件大小",
"duplicate": "复制",