From c517496ab126e934e8a1ba89bce75725bb4c6663 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Fri, 5 Jun 2020 11:44:22 +0200 Subject: Also translate 'Add notes, ...' inside Editor Signed-off-by: Georg Ehrke --- src/EditorFactory.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/EditorFactory.js') 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, }), ] -- cgit v1.2.3