@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
65 lines • 3.06 kB
JavaScript
import { defineMessages } from 'react-intl';
export var codeBlockButtonMessages = defineMessages({
copyCodeToClipboard: {
id: 'fabric.editor.codeBlockCopyButton.copyToClipboard',
defaultMessage: 'Copy as text',
description: 'Copy the content of the code block as text to your clipboard'
},
copiedCodeToClipboard: {
id: 'fabric.editor.codeBlockCopyButton.copiedToClipboard',
defaultMessage: 'Copied!',
description: 'Copied the content of the code block as text to clipboard'
},
// Remove wrapCode/unwrapCode and use wrapCodeLabel/unwrapCodeLabel
// when cleaning up platform_editor_code_block_q4_lovability.
wrapCode: {
id: 'fabric.editor.codeBlockWrapButton.wrapCodeBlock',
defaultMessage: 'Turn on wrap',
description: 'Label for a toolbar button in the code block that enables line wrapping so long lines of code wrap to the next line instead of overflowing.'
},
unwrapCode: {
id: 'fabric.editor.codeBlockWrapButton.unwrapCodeBlock',
defaultMessage: 'Turn off wrap',
description: 'Label for a toolbar button in the code block that disables line wrapping so long lines of code extend horizontally without breaking.'
},
wrapCodeLabel: {
id: 'fabric.editor.codeBlockWrapButton.wrapCode',
defaultMessage: 'Wrap code',
description: 'Tooltip for a code block toolbar button that turns on line wrapping. This is shown when code is not wrapped.'
},
unwrapCodeLabel: {
id: 'fabric.editor.codeBlockWrapButton.unwrapCode',
defaultMessage: 'Unwrap code',
description: 'Tooltip for a code block toolbar button that turns off line wrapping. This is shown when code is wrapped.'
},
showLineNumbersLabel: {
id: 'fabric.editor.codeBlockLineNumbersButton.showLineNumbers',
defaultMessage: 'Show line numbers',
description: 'Tooltip for a code block toolbar button that shows line numbers. This is shown when line numbers are hidden.'
},
hideLineNumbersLabel: {
id: 'fabric.editor.codeBlockLineNumbersButton.hideLineNumbers',
defaultMessage: 'Hide line numbers',
description: 'Tooltip for a code block toolbar button that hides line numbers. This is shown when line numbers are visible.'
},
selectLanguage: {
id: 'fabric.editor.selectLanguage',
defaultMessage: 'Select language',
description: 'Code blocks display software code. A prompt to select the software language the code is written in.'
},
detectLanguage: {
id: 'fabric.editor.codeBlock.detectLanguage',
defaultMessage: 'Detect language',
description: 'Option in the code block language picker that clears the selected language so the editor can detect it automatically.'
},
recentlyUsed: {
id: 'fabric.editor.codeBlock.recentlyUsed',
defaultMessage: 'Recently used',
description: 'Section heading for recently used languages in the code block language picker.'
},
all: {
id: 'fabric.editor.codeBlock.all',
defaultMessage: 'All',
description: 'Section heading for all languages in the code block language picker.'
}
});