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
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
|
||||
import { Icons } from '@ohif/ui-next';
|
||||
import DividerItem from './DividerItem';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
type BackItemProps = {
|
||||
backLabel?: string;
|
||||
@@ -9,6 +10,8 @@ type BackItemProps = {
|
||||
};
|
||||
|
||||
const BackItem = ({ backLabel, onBackClick }: BackItemProps) => {
|
||||
const { t } = useTranslation('Common');
|
||||
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
@@ -19,7 +22,7 @@ const BackItem = ({ backLabel, onBackClick }: BackItemProps) => {
|
||||
name="content-prev"
|
||||
className="ml-2 mr-2"
|
||||
/>
|
||||
<span>{backLabel || 'Back to Display Options'}</span>
|
||||
<span>{backLabel || t('Back')}</span>
|
||||
</div>
|
||||
<DividerItem></DividerItem>
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user