Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-06-05 12:44:22 +0300
committerGeorg Ehrke <developer@georgehrke.com>2020-06-08 20:09:44 +0300
commitc517496ab126e934e8a1ba89bce75725bb4c6663 (patch)
tree3f4579b3ba3cd91e899d7262733fd6779bfaca83 /src/EditorFactory.js
parentb030b44502d1461d5e503448e1acc286c75a95af (diff)
Also translate 'Add notes, ...' inside Editor
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'src/EditorFactory.js')
-rw-r--r--src/EditorFactory.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/EditorFactory.js b/src/EditorFactory.js
index a420dcd0c..60ff164e2 100644
--- a/src/EditorFactory.js
+++ b/src/EditorFactory.js
@@ -38,6 +38,7 @@ import { Strong, Italic, Strike } from './marks'
import { Image, PlainTextDocument, ListItem } from './nodes'
import MarkdownIt from 'markdown-it'
import taskLists from 'markdown-it-task-lists'
+import { translate as t } from '@nextcloud/l10n'
import { MarkdownSerializer, defaultMarkdownSerializer } from 'prosemirror-markdown'
@@ -81,7 +82,7 @@ const createEditor = ({ content, onInit, onUpdate, extensions, enableRichEditing
new Image(),
new Placeholder({
emptyNodeClass: 'is-empty',
- emptyNodeText: 'Add notes, lists or links …',
+ emptyNodeText: t('text', 'Add notes, lists or links …'),
showOnlyWhenEditable: true,
}),
]