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

@@ -17,7 +17,7 @@
* under the License.
*/
import { memo } from 'react';
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { css } from '@apache-superset/core/ui';
import { formatSelectOptions } from '@superset-ui/chart-controls';
import { RawAntdSelect } from '@superset-ui/core/components';

View File

@@ -47,11 +47,16 @@ import {
getSelectedText,
getTimeFormatterForGranularity,
BinaryQueryObjectFilterClause,
t,
tn,
extractTextFromHTML,
} from '@superset-ui/core';
import { styled, css, useTheme, SupersetTheme } from '@apache-superset/core/ui';
import {
styled,
css,
useTheme,
SupersetTheme,
t,
tn,
} from '@apache-superset/core/ui';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
Input,

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import { formatSelectOptions } from '@superset-ui/chart-controls';
import { t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
export const PAGE_SIZE_OPTIONS = formatSelectOptions<number>([
[0, t('All')],

View File

@@ -41,6 +41,7 @@ import {
isPercentMetric,
ConditionalFormattingConfig,
} from '@superset-ui/chart-controls';
import { t } from '@apache-superset/core';
import {
ensureIsArray,
isAdhocColumn,
@@ -49,7 +50,6 @@ import {
QueryFormColumn,
QueryMode,
SMART_DATE_ID,
t,
validateMaxValue,
validateServerPagination,
} from '@superset-ui/core';

View File

@@ -16,7 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { Behavior, ChartMetadata, ChartPlugin, t } from '@superset-ui/core';
import { t } from '@apache-superset/core';
import { Behavior, ChartMetadata, ChartPlugin } from '@superset-ui/core';
import transformProps from './transformProps';
import thumbnail from './images/thumbnail.png';
import thumbnailDark from './images/thumbnail-dark.png';

View File

@@ -17,6 +17,7 @@
* under the License.
*/
import memoizeOne from 'memoize-one';
import { t } from '@apache-superset/core';
import {
ComparisonType,
CurrencyFormatter,
@@ -30,7 +31,6 @@ import {
getTimeFormatterForGranularity,
NumberFormats,
QueryMode,
t,
SMART_DATE_ID,
TimeFormats,
TimeFormatter,