fix(i18n): Add and update i18n Translation for Toolbar Tool Names (#5392)
This commit is contained in:
1 parent
add69e5e4f
commit
7783d0f558
51 files changed
+1058
-558
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { utils } from '@ohif/core';
|
||||
import i18n from '@ohif/i18n';
|
||||
const { formatDate } = utils;
|
||||
|
||||
export default {
|
||||
@@ -6,7 +7,7 @@ export default {
|
||||
'studyBrowser.thumbnailMenuItems': [
|
||||
{
|
||||
id: 'tagBrowser',
|
||||
label: 'Tag Browser',
|
||||
label: i18n.t('StudyBrowser:Tag Browser'),
|
||||
iconName: 'DicomTagBrowser',
|
||||
onClick: ({ commandsManager, displaySetInstanceUID }: withAppTypes) => {
|
||||
commandsManager.runCommand('openDICOMTagViewer', {
|
||||
@@ -16,7 +17,7 @@ export default {
|
||||
},
|
||||
{
|
||||
id: 'addAsLayer',
|
||||
label: 'Add as Layer',
|
||||
label: i18n.t('StudyBrowser:Add as Layer'),
|
||||
iconName: 'ViewportViews',
|
||||
onClick: ({ commandsManager, displaySetInstanceUID, servicesManager }: withAppTypes) => {
|
||||
const { viewportGridService } = servicesManager.services;
|
||||
@@ -37,13 +38,13 @@ export default {
|
||||
],
|
||||
'studyBrowser.sortFunctions': [
|
||||
{
|
||||
label: 'Series Number',
|
||||
label: i18n.t('StudyBrowser:Series Number'),
|
||||
sortFunction: (a, b) => {
|
||||
return a?.SeriesNumber - b?.SeriesNumber;
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Series Date',
|
||||
label: i18n.t('StudyBrowser:Series Date'),
|
||||
sortFunction: (a, b) => {
|
||||
const dateA = new Date(formatDate(a?.SeriesDate));
|
||||
const dateB = new Date(formatDate(b?.SeriesDate));
|
||||
@@ -81,8 +82,10 @@ export default {
|
||||
} catch (error) {
|
||||
console.warn(error);
|
||||
uiNotificationService.show({
|
||||
title: 'Thumbnail Double Click',
|
||||
message: 'The selected display sets could not be added to the viewport.',
|
||||
title: i18n.t('StudyBrowser:Thumbnail Double Click'),
|
||||
message: i18n.t(
|
||||
'StudyBrowser:The selected display sets could not be added to the viewport.'
|
||||
),
|
||||
type: 'error',
|
||||
duration: 3000,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user