Internationalization: Translate ViewJSONmodal and ClipboardButton (#58807)

This commit is contained in:
Laura Fernández
2022-11-21 17:37:53 +01:00
committed by GitHub
parent a62e437eb3
commit 8f567d57fa
8 changed files with 52 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import React, { useCallback, useRef, useState, useEffect } from 'react';
import { GrafanaTheme2 } from '@grafana/data';
import { Trans } from '../../../src/utils/i18n';
import { useStyles2 } from '../../themes';
import { Button, ButtonProps } from '../Button';
import { Icon } from '../Icon/Icon';
@@ -62,7 +63,7 @@ export function ClipboardButton({
<>
{showCopySuccess && (
<InlineToast placement="top" referenceElement={buttonRef.current}>
Copied
<Trans i18nKey="clipboard-button.inline-toast.success">Copied</Trans>
</InlineToast>
)}