mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-11 19:44:00 -06:00
chore(layout): use translations for note title details
This commit is contained in:
parent
876e8f843a
commit
fe1f590286
@ -1749,7 +1749,9 @@
|
|||||||
"printing_pdf": "Exporting to PDF in progress..."
|
"printing_pdf": "Exporting to PDF in progress..."
|
||||||
},
|
},
|
||||||
"note_title": {
|
"note_title": {
|
||||||
"placeholder": "type note's title here..."
|
"placeholder": "type note's title here...",
|
||||||
|
"created_on": "Created on {{date}}",
|
||||||
|
"last_modified": "Last modified on {{date}}"
|
||||||
},
|
},
|
||||||
"search_result": {
|
"search_result": {
|
||||||
"no_notes_found": "No notes have been found for given search parameters.",
|
"no_notes_found": "No notes have been found for given search parameters.",
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { t } from "../services/i18n";
|
||||||
import { formatDateTime } from "../utils/formatters";
|
import { formatDateTime } from "../utils/formatters";
|
||||||
import { useNoteContext } from "./react/hooks";
|
import { useNoteContext } from "./react/hooks";
|
||||||
import { joinElements } from "./react/react_utils";
|
import { joinElements } from "./react/react_utils";
|
||||||
@ -11,10 +12,10 @@ export default function NoteTitleDetails() {
|
|||||||
<div className="title-details">
|
<div className="title-details">
|
||||||
{joinElements([
|
{joinElements([
|
||||||
metadata?.dateCreated && <li>
|
metadata?.dateCreated && <li>
|
||||||
Created on {formatDateTime(metadata.dateCreated, "medium", "none")}
|
{t("note_title.created_on", { date: formatDateTime(metadata.dateCreated, "medium", "none")} )}
|
||||||
</li>,
|
</li>,
|
||||||
metadata?.dateModified && <li>
|
metadata?.dateModified && <li>
|
||||||
Modified on {formatDateTime(metadata.dateModified, "medium", "none")}
|
{t("note_title.last_modified", { date: formatDateTime(metadata.dateModified, "medium", "none")} )}
|
||||||
</li>
|
</li>
|
||||||
], " • ")}
|
], " • ")}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user