From 74f282ec733ac26f21310616df04aa49ff3fc73f Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Fri, 19 Jul 2024 12:57:11 +0200 Subject: [PATCH] shorten weekday labels --- dist/index.js | 2 +- src/translations.ts | 42 +++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/dist/index.js b/dist/index.js index ddff9e05..d36f581b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1792,7 +1792,7 @@ currentDate.setUTCMonth(newSelectedDate.getMonth()); for (let i = 0; i < 7; i++) { monthGridCells.value.push( - /* @__PURE__ */ createElement("b", { class: "secondary ellipsis width-100" }, translation.weekdays[i]) + /* @__PURE__ */ createElement("b", { class: "secondary ellipsis width-100" }, translation.weekdays[i].substring(0, 3)) ); } const monthOffset = currentDate.getDay() - 1; diff --git a/src/translations.ts b/src/translations.ts index d6e2f490..4300ed4f 100644 --- a/src/translations.ts +++ b/src/translations.ts @@ -11,13 +11,13 @@ const englishTranslations = { rename: "Rename", weekdays: [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat", ], previousMonth: "previous month", nextMonth: "next month", @@ -164,13 +164,13 @@ const allTranslations: { [key: string]: typeof englishTranslations } = { rename: "Renombrar", weekdays: [ - "Domingo", - "Lunes", - "Martes", - "Miércoles", - "Jueves", - "Viernes", - "Sábado", + "Dom", + "Lun", + "Mar", + "Mié", + "Jue", + "Vie", + "Sáb", ], // settings @@ -312,13 +312,13 @@ const allTranslations: { [key: string]: typeof englishTranslations } = { rename: "Umbenennen", weekdays: [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag", + "So", + "Mo", + "Di", + "Mi", + "Do", + "Fr", + "Sa", ], // settings