mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
i18n: imports use @grafana/i18n (#105177)
* i18n: everything should target @grafana/i18n * wip * chore: updates after PR feedback * Trigger build * Trigger build * Trigger build * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: skip flaky tests * chore: revert all flaky tests * chore: some incorrect usages of useTranslate
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { useCallback, useEffect, useRef } from 'react';
|
||||
|
||||
import { DataSourceApi, QueryEditorProps, SelectableValue } from '@grafana/data';
|
||||
import { useTranslate } from '@grafana/i18n';
|
||||
import { InlineField, Select } from '@grafana/ui';
|
||||
import { t } from 'app/core/internationalization';
|
||||
|
||||
import { ClassicConditions } from './components/ClassicConditions';
|
||||
import { Math } from './components/Math';
|
||||
@ -66,6 +66,8 @@ export function ExpressionQueryEditor(props: Props) {
|
||||
setCachedExpression(query.type, query.expression);
|
||||
}, [query.expression, query.type, setCachedExpression]);
|
||||
|
||||
const { t } = useTranslate();
|
||||
|
||||
const onSelectExpressionType = useCallback(
|
||||
(item: SelectableValue<ExpressionQueryType>) => {
|
||||
const cachedExpression = getCachedExpression(item.value!);
|
||||
|
Reference in New Issue
Block a user