@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
51 lines • 2.32 kB
JavaScript
import { defineMessages } from 'react-intl';
export var sortingIconMessages = defineMessages({
noOrderLabel: {
id: 'fabric.editor.headingLink.noOrderLabel',
defaultMessage: 'Sort column A to Z',
description: 'Label shown on a table column header sort button to sort the column alphabetically from A to Z (ascending order).'
},
ascOrderLabel: {
id: 'fabric.editor.headingLink.ascOrderLabel',
defaultMessage: 'Sort column Z to A',
description: 'Label shown on a table column header sort button to sort the column alphabetically from Z to A (descending order).'
},
descOrderLabel: {
id: 'fabric.editor.headingLink.descOrderLabel',
defaultMessage: 'Clear sorting',
description: 'Label shown on a table column header sort button to remove any active sorting and restore the default column order.'
},
invalidLabel: {
id: 'fabric.editor.headingLink.invalidLabel',
// eslint-disable-next-line @atlassian/i18n/no-multiple-whitespaces
defaultMessage: "\u26A0\uFE0F You can't sort a table with merged cells",
description: 'Warning message shown in a table column header when sorting cannot be applied because the table contains merged cells.'
}
});
export var sortingAriaLabelMessages = defineMessages({
noOrderLabel: {
id: 'fabric.editor.tableHeader.sorting.no',
defaultMessage: 'No sort applied to the column',
description: 'Aria-label for Sort column button when sorting was not applied or the sorting has been cleared'
},
ascOrderLabel: {
id: 'fabric.editor.tableHeader.sorting.asc',
defaultMessage: 'Ascending sort applied',
description: 'Aria-label for Sort column button when ascending sorting was applied'
},
descOrderLabel: {
id: 'fabric.editor.tableHeader.sorting.desc',
defaultMessage: 'Descending sort applied',
description: 'Aria-label for Sort column button when descending sorting was applied'
},
invalidLabel: {
id: 'fabric.editor.tableHeader.sorting.invalid',
defaultMessage: "You can't sort a table with merged cells",
description: 'Aria-label for Sort column button when sorting is not possible'
},
defaultLabel: {
id: 'fabric.editor.tableHeader.sorting.default',
defaultMessage: 'Sort the column',
description: 'Default aria-label for Sort column button'
}
});