shorten weekday labels

This commit is contained in:
marlon-erler
2024-07-19 12:57:11 +02:00
parent 772a5a1fda
commit 74f282ec73
2 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -1792,7 +1792,7 @@
currentDate.setUTCMonth(newSelectedDate.getMonth()); currentDate.setUTCMonth(newSelectedDate.getMonth());
for (let i = 0; i < 7; i++) { for (let i = 0; i < 7; i++) {
monthGridCells.value.push( 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; const monthOffset = currentDate.getDay() - 1;
+21 -21
View File
@@ -11,13 +11,13 @@ const englishTranslations = {
rename: "Rename", rename: "Rename",
weekdays: [ weekdays: [
"Sunday", "Sun",
"Monday", "Mon",
"Tuesday", "Tue",
"Wednesday", "Wed",
"Thursday", "Thu",
"Friday", "Fri",
"Saturday", "Sat",
], ],
previousMonth: "previous month", previousMonth: "previous month",
nextMonth: "next month", nextMonth: "next month",
@@ -164,13 +164,13 @@ const allTranslations: { [key: string]: typeof englishTranslations } = {
rename: "Renombrar", rename: "Renombrar",
weekdays: [ weekdays: [
"Domingo", "Dom",
"Lunes", "Lun",
"Martes", "Mar",
"Miércoles", "Mié",
"Jueves", "Jue",
"Viernes", "Vie",
"Sábado", "Sáb",
], ],
// settings // settings
@@ -312,13 +312,13 @@ const allTranslations: { [key: string]: typeof englishTranslations } = {
rename: "Umbenennen", rename: "Umbenennen",
weekdays: [ weekdays: [
"Sonntag", "So",
"Montag", "Mo",
"Dienstag", "Di",
"Mittwoch", "Mi",
"Donnerstag", "Do",
"Freitag", "Fr",
"Samstag", "Sa",
], ],
// settings // settings