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

@@ -18,7 +18,7 @@
*/
import React from 'react';
import { ClassNames } from '@emotion/react';
import { styled, useTheme } from '@superset-ui/core';
import { styled, useTheme, t } from '@superset-ui/core';
import { Tooltip } from 'src/components/Tooltip';
const StyledTooltip = (props: any) => {
@@ -60,9 +60,9 @@ const iconMap = {
};
const tooltipTitleMap = {
pk: 'Primary key',
fk: 'Foreign key',
index: 'Index',
pk: t('Primary key'),
fk: t('Foreign key'),
index: t('Index'),
};
export type ColumnKeyTypeType = keyof typeof tooltipTitleMap;