fix(ToolbarRow): Add i18n string for Series switcher (#634)

This commit is contained in:
Biharck Araujo 2019-07-11 06:32:09 -03:00 committed by Erik Ziegler
parent 9055f19fb5
commit 1a9cfea365
3 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,7 @@
const TOOLBAR_BUTTON_TYPES = {
COMMAND: 'command',
SET_TOOL_ACTIVE: 'setToolActive',
BUILT_IN: 'builtIn'
BUILT_IN: 'builtIn',
};
const definitions = [

View File

@ -140,6 +140,7 @@ function convertTimepointsToTableData(timepoints) {
return [
{
label: 'Study date:',
key: 'StudyDate',
date: moment(timepoints[0].latestDate).format('DD-MMM-YY'),
},
];

View File

@ -13,6 +13,7 @@ import ConnectedLayoutButton from './ConnectedLayoutButton';
import ConnectedPluginSwitch from './ConnectedPluginSwitch.js';
import { MODULE_TYPES } from 'ohif-core';
import PropTypes from 'prop-types';
import { withTranslation } from 'react-i18next';
class ToolbarRow extends Component {
// TODO: Simplify these? isOpen can be computed if we say "any" value for selected,
@ -53,7 +54,7 @@ class ToolbarRow extends Component {
{
value: 'studies',
icon: 'th-large',
bottomLabel: 'Series',
bottomLabel: this.props.t('Series'),
},
],
right: [],
@ -238,4 +239,4 @@ function _handleBuiltIn({ behavior } = {}) {
}
}
export default ToolbarRow;
export default withTranslation('Common')(ToolbarRow);