mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
feat(view/calendar): use locale translation for buttons
This commit is contained in:
parent
f8c3587717
commit
b524abb883
@ -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()
|
||||
});
|
||||
|
@ -1655,12 +1655,5 @@
|
||||
"minutes": "Minutes",
|
||||
"hours": "Hours",
|
||||
"days": "Days"
|
||||
},
|
||||
"calendar_view": {
|
||||
"today": "today",
|
||||
"month": "month",
|
||||
"week": "week",
|
||||
"day": "day",
|
||||
"list": "list"
|
||||
}
|
||||
}
|
||||
|
@ -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ă"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user