UNPKG

@atlaskit/editor-common

Version:

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

123 lines (122 loc) 7.2 kB
import { defineMessages } from 'react-intl'; /** * i18n strings for the Markdown-Mode editor plugin. * * Defined here in `editor-common` (rather than alongside the components in * `editor-plugin-markdown-mode`) because the `no-restricted-imports` rule * forbids plugin packages from calling `defineMessages` directly — this * keeps every translatable string discoverable from a single location for * the i18n tooling. See `@atlaskit/editor/no-defineMessages-in-plugin`. */ export var markdownModeMessages = defineMessages({ groupLabel: { id: 'fabric.editor.markdownMode.viewToggle.groupLabel', defaultMessage: 'View mode', description: 'Accessible label announced for the group of three view-mode toggle buttons (markdown source, WYSIWYG, preview) shown on Markdown-Mode Live Docs.' }, source: { id: 'fabric.editor.markdownMode.viewToggle.source', defaultMessage: 'Syntax editor', description: 'Tooltip and accessible label for the toggle button that switches the editor into raw markdown source (syntax) view.' }, wysiwyg: { id: 'fabric.editor.markdownMode.viewToggle.wysiwyg', defaultMessage: 'WYSIWYG editor', description: 'Tooltip and accessible label for the toggle button that switches the editor into the WYSIWYG markdown editing view (the default).' }, preview: { id: 'fabric.editor.markdownMode.viewToggle.preview', defaultMessage: 'Split view (coming soon)', description: 'Tooltip and accessible label for the toggle button that will switch the editor into a split view. This feature is not yet available.' }, sourceAriaLabel: { id: 'fabric.editor.markdownMode.sourceView.ariaLabel', defaultMessage: 'Markdown source', description: 'Accessible label for the markdown source editor.' }, confirmDialogTitleToMarkdown: { id: 'fabric.editor.markdownMode.confirmDialog.title.toMarkdown', defaultMessage: 'Convert to markdown', description: 'Title of the confirmation dialog shown when the user is about to convert a Live Doc from rich text into markdown mode.' }, confirmDialogTitleToMarkdownLossy: { id: 'fabric.editor.markdownMode.confirmDialog.title.toMarkdownLossy', defaultMessage: 'Convert to markdown', description: 'Title of the warning dialog shown when the user is about to convert a Live Doc whose rich-text content cannot fully round-trip through markdown (lossy conversion).' }, confirmDialogTitleToRichText: { id: 'fabric.editor.markdownMode.confirmDialog.title.toRichText', defaultMessage: 'Convert to rich text', description: 'Title of the confirmation dialog shown when the user is about to convert a Live Doc from markdown back to rich text mode.' }, confirmDialogToMarkdownToolsRemoved: { id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toolsRemoved', defaultMessage: 'Use basic formatting', description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the rich-text editor toolbar disappears once the document is in markdown mode.' }, confirmDialogToMarkdownToggle: { id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle', defaultMessage: 'Toggle between the syntax and preview editor', description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between markdown source view and WYSIWYG view after the conversion.' }, confirmDialogToMarkdownVersionHistory: { id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory', defaultMessage: 'Restore previous drafts with version history', description: 'Body row inside the convert-to-markdown confirmation dialog; reassures the user that the pre-conversion version is preserved and recoverable from version history.' }, confirmDialogToMarkdownLossyRichContent: { id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.richContent', defaultMessage: 'Your content may look different as converting removes rich text formatting', description: 'Body row in the lossy convert-to-markdown warning dialog; explains that rich-text formatting may not survive the conversion.' }, confirmDialogToMarkdownLossyVersionHistory: { id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.versionHistory', defaultMessage: 'To restore formatting, access previous drafts from version history', description: 'Body row in the lossy convert-to-markdown warning dialog; reassures the user that the pre-conversion version is recoverable from version history.' }, confirmDialogToMarkdownLossyCta: { id: 'fabric.editor.markdownMode.confirmDialog.toMarkdownLossy.cta', defaultMessage: 'Convert', description: 'Primary (warning-styled) action button label in the lossy convert-to-markdown warning dialog.' }, confirmDialogToRichTextStandardTools: { id: 'fabric.editor.markdownMode.confirmDialog.toRichText.standardTools', defaultMessage: 'Use all rich text tools', description: 'Body row inside the convert-to-rich-text confirmation dialog; explains that the full rich-text toolbar comes back after the conversion.' }, confirmDialogToRichTextVersionHistory: { id: 'fabric.editor.markdownMode.confirmDialog.toRichText.versionHistory', defaultMessage: 'Restore previous drafts with version history', description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that the pre-conversion version is preserved and recoverable from version history.' }, confirmDialogCancel: { id: 'fabric.editor.markdownMode.confirmDialog.cancel', defaultMessage: 'Cancel', description: 'Cancel button label in the convert-markdown-mode confirmation dialog (used for both directions).' }, confirmDialogConfirm: { id: 'fabric.editor.markdownMode.confirmDialog.confirm', defaultMessage: 'Confirm', description: 'Primary confirm button label in the convert-markdown-mode confirmation dialog (used for both directions).' }, confirmDialogError: { id: 'fabric.editor.markdownMode.confirmDialog.error', defaultMessage: 'Something went wrong while converting this page. Please try again.', description: 'Inline error message shown inside the convert-markdown-mode confirmation dialog when the conversion request fails.' }, unlinkSyncedBlocksTitle: { id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.title', defaultMessage: 'Delete synced content?', description: 'Title of the modal shown when the user tries to convert a page to markdown but the page contains synced blocks. The dialog asks them to unlink (unsync) the blocks first.' }, unlinkSyncedBlocksBody: { id: 'fabric.editor.markdownMode.unlinkSyncedBlocks.body', defaultMessage: 'Converting will delete synced blocks and their content. This cannot be restored in version history.', description: 'Body copy for the warning section shown in the convert dialog when synced blocks are present.' }, labsLozenge: { id: 'fabric.editor.markdownMode.labsLozenge', defaultMessage: 'LABS', description: 'Lozenge label displayed next to the modal title to indicate the markdown mode feature is experimental (Labs).' } });