- Opacity
+ {t('Opacity')}
{
+ const { t } = useTranslation('SegmentationTable');
const { initialConfig } = segmentationConfig;
const [isMinimized, setIsMinimized] = useState(true);
return (
@@ -144,7 +148,7 @@ const SegmentationConfig = ({
'rotate-90 transform': !isMinimized,
})}
/>
- {'Inactive Segmentations'}
+ {t('Inactive segmentations')}
{!isMinimized && (
{
onSegmentationAdd();
},
@@ -56,7 +58,7 @@ function SegmentationDropDownRow({
...(!disableEditing
? [
{
- title: 'Rename',
+ title: t('Rename'),
onClick: () => {
onSegmentationEdit(activeSegmentation.id);
},
@@ -64,7 +66,7 @@ function SegmentationDropDownRow({
]
: []),
{
- title: 'Delete',
+ title: t('Delete'),
onClick: () => {
onSegmentationDelete(activeSegmentation.id);
},
@@ -72,7 +74,7 @@ function SegmentationDropDownRow({
...(!disableEditing
? [
{
- title: 'Export DICOM SEG',
+ title: t('Export DICOM SEG'),
onClick: () => {
storeSegmentation(activeSegmentation.id);
},
@@ -81,13 +83,13 @@ function SegmentationDropDownRow({
: []),
...[
{
- title: 'Download DICOM SEG',
+ title: t('Download DICOM SEG'),
onClick: () => {
onSegmentationDownload(activeSegmentation.id);
},
},
{
- title: 'Download DICOM RTSTRUCT',
+ title: t('Download DICOM RTSTRUCT'),
onClick: () => {
onSegmentationDownloadRTSS(activeSegmentation.id);
},
diff --git a/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupTable.tsx b/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupTable.tsx
index 295a7951441..2ea0bcb0014 100644
--- a/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupTable.tsx
+++ b/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupTable.tsx
@@ -6,6 +6,7 @@ import SegmentationDropDownRow from './SegmentationDropDownRow';
import NoSegmentationRow from './NoSegmentationRow';
import AddSegmentRow from './AddSegmentRow';
import SegmentationGroupSegment from './SegmentationGroupSegment';
+import { useTranslation } from 'react-i18next';
const SegmentationGroupTable = ({
segmentations,
@@ -70,11 +71,12 @@ const SegmentationGroupTable = ({
const activeSegmentation = segmentations?.find(
segmentation => segmentation.id === activeSegmentationId
);
+ const { t } = useTranslation('SegmentationTable');
return (
{
};
const SidePanel = ({ side, className, activeTabIndex: activeTabIndexProp, tabs, onOpen }) => {
- const { t } = useTranslation('SidePanel');
-
const [panelOpen, setPanelOpen] = useState(activeTabIndexProp !== null);
const [activeTabIndex, setActiveTabIndex] = useState(0);
diff --git a/platform/ui/src/components/StudyItem/StudyItem.tsx b/platform/ui/src/components/StudyItem/StudyItem.tsx
index 6e7804fab1d..9325e5b013e 100644
--- a/platform/ui/src/components/StudyItem/StudyItem.tsx
+++ b/platform/ui/src/components/StudyItem/StudyItem.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
+import { useTranslation } from 'react-i18next';
import Icon from '../Icon';
@@ -16,6 +17,7 @@ const StudyItem = ({
isActive,
onClick,
}) => {
+ const { t } = useTranslation('StudyItem');
return (
- {trackedSeries} Tracked Series
+ {t('Tracked series', {trackedSeries: trackedSeries})}
)}
diff --git a/platform/ui/src/components/StudyListFilter/StudyListFilter.tsx b/platform/ui/src/components/StudyListFilter/StudyListFilter.tsx
index 8db3d8393fd..b322eba176a 100644
--- a/platform/ui/src/components/StudyListFilter/StudyListFilter.tsx
+++ b/platform/ui/src/components/StudyListFilter/StudyListFilter.tsx
@@ -48,7 +48,7 @@ const StudyListFilter = ({
onClick={onUploadClick}
>