mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-02 02:41:34 +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 ws from "../../services/ws.js";
|
||||
import type { EventDragStopArg, EventResizeDoneArg } from "@fullcalendar/interaction";
|
||||
import { t } from "../../services/i18n.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="calendar-view">
|
||||
@ -76,6 +77,13 @@ 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")
|
||||
}
|
||||
});
|
||||
calendar.render();
|
||||
|
||||
|
@ -1655,5 +1655,12 @@
|
||||
"minutes": "Minutes",
|
||||
"hours": "Hours",
|
||||
"days": "Days"
|
||||
},
|
||||
"calendar_view": {
|
||||
"today": "today",
|
||||
"month": "month",
|
||||
"week": "week",
|
||||
"day": "day",
|
||||
"list": "list"
|
||||
}
|
||||
}
|
||||
|
@ -281,7 +281,8 @@
|
||||
"grid": "Grilă",
|
||||
"invalid_view_type": "Mod de afișare incorect „{{type}}”",
|
||||
"list": "Listă",
|
||||
"view_type": "Mod de afișare"
|
||||
"view_type": "Mod de afișare",
|
||||
"calendar": "Calendar"
|
||||
},
|
||||
"bookmark_switch": {
|
||||
"bookmark": "Semn de carte",
|
||||
@ -1657,5 +1658,12 @@
|
||||
},
|
||||
"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