feat(i18n): enhanced i18n support (#3730)

This commit is contained in:
Pavel authored and GitHub committed 2023-10-31 15:36:45 -04:00
1 parent c73a403cdc
commit 330e11c7ff
46 files changed
+146 -134

No files matched your search

@@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { useTranslation } from 'react-i18next';
import Icon from '../Icon';
@@ -21,8 +20,6 @@ const InputLabelWrapper = ({
className,
children,
}) => {
const { t } = useTranslation('StudyList');
const onClickHandler = e => {
if (!isSortable) {
return;
@@ -40,7 +37,7 @@ const InputLabelWrapper = ({
onKeyDown={onClickHandler}
tabIndex="0"
>
{t(label)}
{label}
{isSortable && (
<Icon
name={sortIconMap[sortDirection]}