feat: Added support for i18n (#2439)

* Added translation for various react components in OHIF-v3

* Added a test language for debugging- test-LNG 

* Added copy for test language to not get overwritten
This commit is contained in:
Alireza authored and GitHub committed 2021-06-15 10:56:33 -04:00
1 parent fdb6ca41d6
commit 1bf651e763
42 files changed
+365 -63

No files matched your search

@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { useTranslation } from 'react-i18next';
import { ButtonGroup, Button, StudyItem, ThumbnailList } from '../';
@@ -29,6 +30,8 @@ const StudyBrowser = ({
onClickUntrack,
activeDisplaySetInstanceUID,
}) => {
const { t } = useTranslation("StudyBrowser")
const getTabContent = () => {
const tabData = tabs.find(tab => tab.name === activeTabName);
@@ -96,7 +99,7 @@ const StudyBrowser = ({
}}
disabled={isDisabled}
>
{label}
{t(label)}
</Button>
);
})}