mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add translation for mermaid.js
This commit is contained in:
parent
83388ecf1c
commit
f5b21498bf
@ -1,3 +1,4 @@
|
||||
import { t } from "../services/i18n.js";
|
||||
import libraryLoader from "../services/library_loader.js";
|
||||
import NoteContextAwareWidget from "./note_context_aware_widget.js";
|
||||
import server from "../services/server.js";
|
||||
@ -27,7 +28,7 @@ const TPL = `<div class="mermaid-widget">
|
||||
</style>
|
||||
|
||||
<div class="mermaid-error alert alert-warning">
|
||||
<p><strong>The diagram could not be displayed. See <a href="https://mermaid-js.github.io/mermaid/#/flowchart?id=graph">help and examples</a>.</strong></p>
|
||||
<p><strong>${t('mermaid.diagram_error')}</strong></p>
|
||||
<p class="error-content"></p>
|
||||
</div>
|
||||
|
||||
|
@ -1343,5 +1343,8 @@
|
||||
"highlights_list_2": {
|
||||
"title": "高亮列表",
|
||||
"options": "选项"
|
||||
},
|
||||
"mermaid": {
|
||||
"diagram_error": "图表无法显示。 请参考 <a href=\"https://mermaid-js.github.io/mermaid/#/flowchart?id=graph\">帮助文档和示例</a>。"
|
||||
}
|
||||
}
|
||||
|
@ -1343,5 +1343,8 @@
|
||||
"highlights_list_2": {
|
||||
"title": "Highlights List",
|
||||
"options": "Options"
|
||||
},
|
||||
"mermaid": {
|
||||
"diagram_error": "The diagram could not be displayed. See <a href=\"https://mermaid-js.github.io/mermaid/#/flowchart?id=graph\">help and examples</a>."
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user