feat/Added translation option for text 'segment' (#4624)

This commit is contained in:
nithin-trenser authored and GitHub committed 2025-01-03 10:38:34 -05:00
1 parent 4ef67c0cf7
commit 860679126a
3 files changed
+15 -12

No files matched your search

+2 -1
View File
@@ -2,6 +2,7 @@ import OHIF from '@ohif/core';
import * as cs from '@cornerstonejs/core';
import * as csTools from '@cornerstonejs/tools';
import { classes } from '@ohif/core';
import i18n from '@ohif/i18n';
import getThresholdValues from './utils/getThresholdValue';
import createAndDownloadTMTVReport from './utils/createAndDownloadTMTVReport';
@@ -182,7 +183,7 @@ const commandsModule = ({ servicesManager, commandsManager, extensionManager }:
const segmentationId = await segmentationService.createLabelmapForDisplaySet(displaySet, {
label: `Segmentation ${currentSegmentations.length + 1}`,
segments: { 1: { label: 'Segment 1', active: true } },
segments: { 1: { label: `${i18n.t('Segment')} 1`, active: true } },
});
segmentationService.addSegmentationRepresentation(withPTViewportId, {