UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

39 lines (38 loc) 1.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.annotationMessages = void 0; var _reactIntl = require("react-intl"); var annotationMessages = exports.annotationMessages = (0, _reactIntl.defineMessages)({ createComment: { id: 'fabric.editor.createComment', defaultMessage: 'Comment', description: 'Create/add an inline comment based on the users selection' }, // Ignored via go/ees007 // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format // TODO: Remove this message when the editor_inline_comments_on_inline_nodes FF is removed createCommentInvalid: { id: 'fabric.editor.createCommentInvalid', defaultMessage: 'You can only comment on text and headings', description: 'Error message to communicate to the user they can only do the current action in certain contexts' }, createCommentDisabled: { id: 'fabric.editor.createCommentDisabled', defaultMessage: 'You can only comment on text, headings, emojis, dates, mentions, links, and statuses.', description: 'Error message to communicate to the user they can only do the current action in certain contexts' }, // Duplicated by Confluence's // highlight-actions.inline-comments.comment.no.permission noPermissionToAddComment: { id: 'fabric.editor.noPermissionToAddComment', defaultMessage: '{contentType, select, blogpost {You do not have permission to add comments to this blogpost} page {You do not have permission to add comments to this page} other {You do not have permission to add comments to this page}}', description: 'Tooltip for when the user does not have permission to add inline comments' }, toolbar: { id: 'fabric.editor.annotationToolbar', defaultMessage: 'Annotation toolbar', description: 'A label for a toolbar (UI element) that creates annotations/comments in the document' } });