diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b3ade88..87eb6e2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 8.1.0 (IN PROGRESS) * Remove deprecated pane properties ([UIEUS-349](https://issues.folio.org/browse/UIEUS-349)) +* Use translation keys of stripes-components ([UIEUS-351](https://folio-org.atlassian.net/browse/UIEUS-351)) ## [8.0.1](https://github.com/folio-org/ui-erm-usage/tree/v8.0.1) (2023-11-08) * Address test warnings ([UIEUS-321](https://issues.folio.org/browse/UIEUS-321)) diff --git a/src/commands.js b/src/commands.js index 84b832b7..b18a41b8 100644 --- a/src/commands.js +++ b/src/commands.js @@ -4,32 +4,32 @@ import { FormattedMessage } from 'react-intl'; const commands = [ { name: 'new', - label: (), + label: (), shortcut: 'alt+n' }, { name: 'edit', - label: (), + label: (), shortcut: 'mod+alt+e' }, { name: 'save', - label: (), + label: (), shortcut: 'mod+s' }, { name: 'expandAllSections', - label: (), + label: (), shortcut: 'mod+alt+b' }, { name: 'collapseAllSections', - label: (), + label: (), shortcut: 'mod+alt+g' }, { name: 'search', - label: (), + label: (), shortcut: 'mod+alt+h' } ]; diff --git a/src/commandsGeneral.js b/src/commandsGeneral.js index b09e7f53..94c20d37 100644 --- a/src/commandsGeneral.js +++ b/src/commandsGeneral.js @@ -4,32 +4,32 @@ import { FormattedMessage } from 'react-intl'; const commandsGeneral = [ { name: 'expandCollapse', - label: (), + label: (), shortcut: 'spacebar' }, { name: 'close', - label: (), + label: (), shortcut: 'esc' }, { name: 'copy', - label: (), + label: (), shortcut: 'mod+c' }, { name: 'cut', - label: (), + label: (), shortcut: 'mod+x' }, { name: 'paste', - label: (), + label: (), shortcut: 'mod+v' }, { name: 'find', - label: (), + label: (), shortcut: 'mod+f' } ]; diff --git a/src/components/views/UDPForm.js b/src/components/views/UDPForm.js index afe92776..01149817 100644 --- a/src/components/views/UDPForm.js +++ b/src/components/views/UDPForm.js @@ -213,7 +213,7 @@ class UDPForm extends React.Component { onClick={handleSubmit} disabled={disabled} > - + ); diff --git a/src/settings/Aggregators/AggregatorForm.js b/src/settings/Aggregators/AggregatorForm.js index 9448b767..57550d13 100644 --- a/src/settings/Aggregators/AggregatorForm.js +++ b/src/settings/Aggregators/AggregatorForm.js @@ -196,7 +196,7 @@ class AggregatorForm extends React.Component { type="submit" disabled={disabled} > - + ); diff --git a/translations/ui-erm-usage/en.json b/translations/ui-erm-usage/en.json index a074f9c1..8f8abb74 100644 --- a/translations/ui-erm-usage/en.json +++ b/translations/ui-erm-usage/en.json @@ -9,18 +9,6 @@ "usage-data-providers": "Usage data providers", "usage-data-provider-pluralizable": "{count} {count, plural, one {usage-data-provider} other {usage-data-providers}}", "appMenu.keyboardShortcuts": "Keyboard shortcuts", - "shortcut.createRecord": "Create a new record", - "shortcut.editRecord": "Edit a record", - "shortcut.saveRecord": "Save a record", - "shortcut.expandCollapse": "Expand or collapse an accordion", - "shortcut.expandAll": "Expand all accordions", - "shortcut.collapseAll": "Collapse all accordions", - "shortcut.goToSearchFilter": "Go to Search & Filter pane", - "shortcut.closeModal": "Close a modal or pop-up", - "shortcut.copy": "Copy", - "shortcut.cut": "Cut", - "shortcut.paste": "Paste", - "shortcut.find": "Find", "meta.title": "eUsage", @@ -185,7 +173,6 @@ "report.error.3080": "Limit requested greater than maximum server limit", "udp.form.cancel": "Cancel", - "udp.form.saveAndClose": "Save & close", "udp.form.close": "Close new usage data provider Dialog", "udp.form.createUDP": "Create usage data provider", "udp.form.udpInfo.title": "Usage data provider information", @@ -239,7 +226,6 @@ "aggregator.config.popover": "For German National Statistic Server specify the keys:", "aggregator.config.addParam": "Add config parameter", - "aggregator.form.saveAndClose": "Save and close", "aggregator.form.create": "Create aggregator", "aggregator.form.delete.confirm.title": "Delete aggregator", "aggregator.form.newAggregator": "New aggregator",