mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-02 19:01:30 +08:00
feat(calendar_view): translate buttons
This commit is contained in:
parent
03282e12b7
commit
0bcabacd3a
@ -5,6 +5,7 @@ import type FNote from "../../entities/fnote.js";
|
|||||||
import server from "../../services/server.js";
|
import server from "../../services/server.js";
|
||||||
import ws from "../../services/ws.js";
|
import ws from "../../services/ws.js";
|
||||||
import type { EventDragStopArg, EventResizeDoneArg } from "@fullcalendar/interaction";
|
import type { EventDragStopArg, EventResizeDoneArg } from "@fullcalendar/interaction";
|
||||||
|
import { t } from "../../services/i18n.js";
|
||||||
|
|
||||||
const TPL = `
|
const TPL = `
|
||||||
<div class="calendar-view">
|
<div class="calendar-view">
|
||||||
@ -76,6 +77,13 @@ 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")
|
||||||
|
}
|
||||||
});
|
});
|
||||||
calendar.render();
|
calendar.render();
|
||||||
|
|
||||||
|
@ -1655,5 +1655,12 @@
|
|||||||
"minutes": "Minutes",
|
"minutes": "Minutes",
|
||||||
"hours": "Hours",
|
"hours": "Hours",
|
||||||
"days": "Days"
|
"days": "Days"
|
||||||
|
},
|
||||||
|
"calendar_view": {
|
||||||
|
"today": "today",
|
||||||
|
"month": "month",
|
||||||
|
"week": "week",
|
||||||
|
"day": "day",
|
||||||
|
"list": "list"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -281,7 +281,8 @@
|
|||||||
"grid": "Grilă",
|
"grid": "Grilă",
|
||||||
"invalid_view_type": "Mod de afișare incorect „{{type}}”",
|
"invalid_view_type": "Mod de afișare incorect „{{type}}”",
|
||||||
"list": "Listă",
|
"list": "Listă",
|
||||||
"view_type": "Mod de afișare"
|
"view_type": "Mod de afișare",
|
||||||
|
"calendar": "Calendar"
|
||||||
},
|
},
|
||||||
"bookmark_switch": {
|
"bookmark_switch": {
|
||||||
"bookmark": "Semn de carte",
|
"bookmark": "Semn de carte",
|
||||||
@ -1657,5 +1658,12 @@
|
|||||||
},
|
},
|
||||||
"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