From b7efd46e2d514a7a3ea4527467bfb2be7f16a17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Fern=C3=A1ndez?= Date: Fri, 4 Nov 2022 12:21:46 +0100 Subject: [PATCH] Internationalization: Translate TimeRangeList component (#58131) --- .../DateTimePickers/TimeRangePicker/TimeRangeList.tsx | 5 +++-- public/locales/de-DE/grafana.json | 2 ++ public/locales/en-US/grafana.json | 2 ++ public/locales/es-ES/grafana.json | 2 ++ public/locales/fr-FR/grafana.json | 4 +++- public/locales/pseudo-LOCALE/grafana.json | 2 ++ public/locales/zh-Hans/grafana.json | 2 ++ 7 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/TimeRangeList.tsx b/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/TimeRangeList.tsx index 45b0dfdcbaf..3995086da65 100644 --- a/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/TimeRangeList.tsx +++ b/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/TimeRangeList.tsx @@ -4,6 +4,7 @@ import React, { ReactNode } from 'react'; import { TimeOption } from '@grafana/data'; import { stylesFactory } from '../../../themes'; +import { t } from '../../../utils/i18n'; import { TimePickerTitle } from './TimePickerTitle'; import { TimeRangeOption } from './TimeRangeOption'; @@ -65,14 +66,14 @@ const Options = ({ options, value, onChange, title }: Props) => { return ( <> -