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,6 +18,7 @@
*/
import React from 'react';
import { t } from '@superset-ui/core';
import PropTypes from 'prop-types';
import { PivotData, flatKey } from './utilities';
import { Styles } from './Styles';
@@ -462,7 +463,7 @@ export class TableRenderer extends React.Component {
true,
)}
>
Subtotal
{t('Subtotal')}
</th>,
);
}
@@ -658,7 +659,7 @@ export class TableRenderer extends React.Component {
true,
)}
>
Subtotal
{t('Subtotal')}
</th>
) : null;
@@ -763,7 +764,10 @@ export class TableRenderer extends React.Component {
true,
)}
>
{`Total (${this.props.aggregatorName})`}
{
// eslint-disable-next-line prefer-template
t('Total') + ` (${this.props.aggregatorName})`
}
</th>
);