mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
chore: Localization of several charts and elements (#22150)
Co-authored-by: ashumeiko <ashumeiko@ashumeiko.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user