mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: Localization of superset pt. 2 (#22772)
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
useTheme,
|
||||
isAdhocColumn,
|
||||
BinaryQueryObjectFilterClause,
|
||||
t,
|
||||
} from '@superset-ui/core';
|
||||
import { PivotTable, sortAs, aggregatorTemplates } from './react-pivottable';
|
||||
import {
|
||||
@@ -55,7 +56,7 @@ const PivotTableWrapper = styled.div`
|
||||
overflow: auto;
|
||||
`;
|
||||
|
||||
const METRIC_KEY = 'metric';
|
||||
const METRIC_KEY = t('metric');
|
||||
const vals = ['value'];
|
||||
|
||||
const StyledPlusSquareOutlined = styled(PlusSquareOutlined)`
|
||||
|
||||
@@ -487,7 +487,9 @@ export class TableRenderer extends React.Component {
|
||||
true,
|
||||
)}
|
||||
>
|
||||
{`Total (${this.props.aggregatorName})`}
|
||||
{t('Total (%(aggregatorName)s)', {
|
||||
aggregatorName: t(this.props.aggregatorName),
|
||||
})}
|
||||
</th>
|
||||
) : null;
|
||||
|
||||
@@ -550,7 +552,9 @@ export class TableRenderer extends React.Component {
|
||||
)}
|
||||
>
|
||||
{colAttrs.length === 0
|
||||
? `Total (${this.props.aggregatorName})`
|
||||
? t('Total (%(aggregatorName)s)', {
|
||||
aggregatorName: t(this.props.aggregatorName),
|
||||
})
|
||||
: null}
|
||||
</th>
|
||||
</tr>
|
||||
@@ -764,10 +768,9 @@ export class TableRenderer extends React.Component {
|
||||
true,
|
||||
)}
|
||||
>
|
||||
{
|
||||
// eslint-disable-next-line prefer-template
|
||||
t('Total') + ` (${this.props.aggregatorName})`
|
||||
}
|
||||
{t('Total (%(aggregatorName)s)', {
|
||||
aggregatorName: t(this.props.aggregatorName),
|
||||
})}
|
||||
</th>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user