Skip to content

Build your personal knowledge base with Trilium Notes

feat(view/calendar): use locale translation for buttons

Elian Doranb524abb883a1
diff --git a/src/public/app/widgets/view_widgets/calendar_view.ts b/src/public/app/widgets/view_widgets/calendar_view.ts
index 3d477b26bb..92daed9224 100644
--- a/src/public/app/widgets/view_widgets/calendar_view.ts
+++ b/src/public/app/widgets/view_widgets/calendar_view.ts
@@ -77,13 +77,6 @@ export default class CalendarView extends ViewMode {
events: await CalendarView.#buildEvents(this.noteIds),
editable,
eventChange: (e) => this.#onEventMoved(e),
- buttonText: {
- today: t("calendar_view.today"),
- month: t("calendar_view.month"),
- week: t("calendar_view.week"),
- day: t("calendar_view.day"),
- list: t("calendar_view.list")
- },
firstDay: options.getInt("firstDayOfWeek") ?? 0,
locale: await CalendarView.#getLocale()
});
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index e9ff9d146c..45eec36c5f 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -1655,12 +1655,5 @@
"minutes": "Minutes",
"hours": "Hours",
"days": "Days"
- },
- "calendar_view": {
- "today": "today",
- "month": "month",
- "week": "week",
- "day": "day",
- "list": "list"
}
}
diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json
index ca35fe4757..445b657bca 100644
--- a/src/public/translations/ro/translation.json
+++ b/src/public/translations/ro/translation.json
@@ -1658,12 +1658,5 @@
},
"help-button": {
"title": "Deschide ghidul relevant"
- },
- "calendar_view": {
- "day": "zi",
- "list": "listă",
- "month": "lună",
- "today": "azi",
- "week": "săptămână"
}
}