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:
Hugo Häggmark
2025-05-15 09:17:14 +02:00
committed by GitHub
parent d8dd2facdd
commit 119d5897ea
1112 changed files with 2910 additions and 1877 deletions
@@ -1,9 +1,9 @@
import { useCallback, useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom-v5-compat';
import { useTranslate } from '@grafana/i18n';
import { ConfirmModal, IconButton } from '@grafana/ui';
import { useDeleteRepositoryMutation } from 'app/api/clients/provisioning';
import { t } from 'app/core/internationalization';
interface Props {
name: string;
@@ -28,6 +28,8 @@ export function DeleteRepositoryButton({ name, redirectTo }: Props) {
deleteRepository({ name });
}, [deleteRepository, name]);
const { t } = useTranslate();
return (
<>
<IconButton