mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 22:58:52 +02:00
chore(collection/presentation): use translations
This commit is contained in:
parent
55f9a3712c
commit
be076a6609
@ -2029,6 +2029,10 @@
|
|||||||
"edit-note-title": "Click to edit note title",
|
"edit-note-title": "Click to edit note title",
|
||||||
"edit-column-title": "Click to edit column title"
|
"edit-column-title": "Click to edit column title"
|
||||||
},
|
},
|
||||||
|
"presentation_view": {
|
||||||
|
"edit-slide": "Edit this slide",
|
||||||
|
"start-presentation": "Start presentation"
|
||||||
|
},
|
||||||
"command_palette": {
|
"command_palette": {
|
||||||
"tree-action-name": "Tree: {{name}}",
|
"tree-action-name": "Tree: {{name}}",
|
||||||
"export_note_title": "Export Note",
|
"export_note_title": "Export Note",
|
||||||
|
@ -11,6 +11,7 @@ import "./index.css";
|
|||||||
import { RefObject } from "preact";
|
import { RefObject } from "preact";
|
||||||
import { openInCurrentNoteContext } from "../../../components/note_context";
|
import { openInCurrentNoteContext } from "../../../components/note_context";
|
||||||
import { useTriliumEvent } from "../../react/hooks";
|
import { useTriliumEvent } from "../../react/hooks";
|
||||||
|
import { t } from "../../../services/i18n";
|
||||||
|
|
||||||
const stylesheets = [
|
const stylesheets = [
|
||||||
slideBaseStylesheet,
|
slideBaseStylesheet,
|
||||||
@ -55,7 +56,7 @@ function ButtonOverlay({ containerRef, apiRef }: { containerRef: RefObject<HTMLD
|
|||||||
<div className="presentation-button-bar">
|
<div className="presentation-button-bar">
|
||||||
<ActionButton
|
<ActionButton
|
||||||
icon="bx bx-edit"
|
icon="bx bx-edit"
|
||||||
text="Edit this slide"
|
text={t("presentation_view.edit-slide")}
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
const currentSlide = apiRef.current?.getCurrentSlide();
|
const currentSlide = apiRef.current?.getCurrentSlide();
|
||||||
const noteId = getNoteIdFromSlide(currentSlide);
|
const noteId = getNoteIdFromSlide(currentSlide);
|
||||||
@ -68,7 +69,7 @@ function ButtonOverlay({ containerRef, apiRef }: { containerRef: RefObject<HTMLD
|
|||||||
|
|
||||||
<ActionButton
|
<ActionButton
|
||||||
icon="bx bx-fullscreen"
|
icon="bx bx-fullscreen"
|
||||||
text="Start presentation"
|
text={t("presentation_view.start-presentation")}
|
||||||
onClick={() => containerRef.current?.requestFullscreen()}
|
onClick={() => containerRef.current?.requestFullscreen()}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user