@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
57 lines (56 loc) • 2.55 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.sortingIconMessages = exports.sortingAriaLabelMessages = void 0;
var _reactIntl = require("react-intl");
var sortingIconMessages = exports.sortingIconMessages = (0, _reactIntl.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.'
}
});
var sortingAriaLabelMessages = exports.sortingAriaLabelMessages = (0, _reactIntl.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'
}
});