chore: Localization of several charts and elements (#22150)

Co-authored-by: ashumeiko <ashumeiko@ashumeiko.com>
This commit is contained in:
Artem Shumeiko
2023-01-11 19:42:54 +03:00
committed by GitHub
parent 44c9cf4de5
commit f3696ceef3
98 changed files with 748 additions and 663 deletions

View File

@@ -21,7 +21,7 @@ import PropTypes from 'prop-types';
import Mustache from 'mustache';
import { scaleLinear } from 'd3-scale';
import TableView from 'src/components/TableView';
import { formatNumber, formatTime, styled } from '@superset-ui/core';
import { formatNumber, formatTime, styled, t } from '@superset-ui/core';
import {
InfoTooltipWithTrigger,
MetricOption,
@@ -119,7 +119,7 @@ const TimeTable = ({
}) => {
const memoizedColumns = useMemo(
() => [
{ accessor: 'metric', Header: 'Metric' },
{ accessor: 'metric', Header: t('Metric') },
...columnConfigs.map((columnConfig, i) => ({
accessor: columnConfig.key,
cellProps: columnConfig.colType === 'spark' && {