mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 19:22:31 +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),
|
events: await CalendarView.#buildEvents(this.noteIds),
|
||||||
editable,
|
editable,
|
||||||
eventChange: (e) => this.#onEventMoved(e),
|
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,
|
firstDay: options.getInt("firstDayOfWeek") ?? 0,
|
||||||
locale: await CalendarView.#getLocale()
|
locale: await CalendarView.#getLocale()
|
||||||
});
|
});
|
||||||
|
@ -1655,12 +1655,5 @@
|
|||||||
"minutes": "Minutes",
|
"minutes": "Minutes",
|
||||||
"hours": "Hours",
|
"hours": "Hours",
|
||||||
"days": "Days"
|
"days": "Days"
|
||||||
},
|
|
||||||
"calendar_view": {
|
|
||||||
"today": "today",
|
|
||||||
"month": "month",
|
|
||||||
"week": "week",
|
|
||||||
"day": "day",
|
|
||||||
"list": "list"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1658,12 +1658,5 @@
|
|||||||
},
|
},
|
||||||
"help-button": {
|
"help-button": {
|
||||||
"title": "Deschide ghidul relevant"
|
"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