refactor: move translations and logging to new core (#36929)

This commit is contained in:
Mehmet Salih Yavuz
2026-01-12 08:58:59 +03:00
committed by GitHub
parent 0294c30c9e
commit e9b6791ffb
704 changed files with 1067 additions and 1252 deletions

View File

@@ -18,6 +18,7 @@
*/
import { useCallback, useMemo } from 'react';
import { MinusSquareOutlined, PlusSquareOutlined } from '@ant-design/icons';
import { t } from '@apache-superset/core';
import {
AdhocMetric,
BinaryQueryObjectFilterClause,
@@ -31,7 +32,6 @@ import {
isFeatureEnabled,
isPhysicalColumn,
NumberFormatter,
t,
} from '@superset-ui/core';
import { styled, useTheme } from '@apache-superset/core/ui';
import { aggregatorTemplates, PivotTable, sortAs } from './react-pivottable';

View File

@@ -23,13 +23,13 @@ import {
getStandardizedControls,
sharedControls,
} from '@superset-ui/chart-controls';
import { t } from '@apache-superset/core';
import {
ensureIsArray,
isAdhocColumn,
isPhysicalColumn,
QueryFormMetric,
SMART_DATE_ID,
t,
validateNonEmpty,
} from '@superset-ui/core';
import { MetricsLayoutEnum } from '../types';

View File

@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t } from '@apache-superset/core';
import {
Behavior,
ChartMetadata,
ChartPlugin,
ChartProps,
QueryFormData,
t,
} from '@superset-ui/core';
import buildQuery from './buildQuery';
import controlPanel from './controlPanel';

View File

@@ -18,7 +18,8 @@
*/
import { Component } from 'react';
import { t, safeHtmlSpan } from '@superset-ui/core';
import { safeHtmlSpan } from '@superset-ui/core';
import { t } from '@apache-superset/core/ui';
import PropTypes from 'prop-types';
import { PivotData, flatKey } from './utilities';
import { Styles } from './Styles';

View File

@@ -18,7 +18,7 @@
*/
import PropTypes from 'prop-types';
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core/ui';
const addSeparators = function (nStr, thousandsSep, decimalSep) {
const x = String(nStr).split('.');