mirror of
https://github.com/grafana/grafana.git
synced 2025-02-09 23:16:16 -06:00
Internationalization: Translate CalendarFooter component (#58326)
This commit is contained in:
parent
97df6e682e
commit
e5d4d00c1f
@ -4,6 +4,7 @@ import React from 'react';
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
|
||||
import { useStyles2 } from '../../../themes';
|
||||
import { Trans } from '../../../utils/i18n';
|
||||
import { Button } from '../../Button';
|
||||
|
||||
import { TimePickerCalendarProps } from './TimePickerCalendar';
|
||||
@ -14,10 +15,10 @@ export function Footer({ onClose, onApply }: TimePickerCalendarProps) {
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<Button className={styles.apply} onClick={onApply}>
|
||||
Apply time range
|
||||
<Trans i18nKey="time-picker.calendar.apply-button">Apply time range</Trans>
|
||||
</Button>
|
||||
<Button variant="secondary" onClick={onClose}>
|
||||
Cancel
|
||||
<Trans i18nKey="time-picker.calendar.cancel-button">Cancel</Trans>
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
|
@ -413,6 +413,8 @@
|
||||
"title": "Absoluter Zeitbereich"
|
||||
},
|
||||
"calendar": {
|
||||
"apply-button": "",
|
||||
"cancel-button": "",
|
||||
"select-time": ""
|
||||
},
|
||||
"time-range": {
|
||||
|
@ -413,6 +413,8 @@
|
||||
"title": "Absolute time range"
|
||||
},
|
||||
"calendar": {
|
||||
"apply-button": "Apply time range",
|
||||
"cancel-button": "Cancel",
|
||||
"select-time": "Select a time range"
|
||||
},
|
||||
"time-range": {
|
||||
|
@ -413,6 +413,8 @@
|
||||
"title": "Intervalo de tiempo absoluto"
|
||||
},
|
||||
"calendar": {
|
||||
"apply-button": "",
|
||||
"cancel-button": "",
|
||||
"select-time": ""
|
||||
},
|
||||
"time-range": {
|
||||
|
@ -413,6 +413,8 @@
|
||||
"title": "Période temporelle absolue"
|
||||
},
|
||||
"calendar": {
|
||||
"apply-button": "",
|
||||
"cancel-button": "",
|
||||
"select-time": ""
|
||||
},
|
||||
"time-range": {
|
||||
|
@ -413,6 +413,8 @@
|
||||
"title": "Åþşőľūŧę ŧįmę řäʼnģę"
|
||||
},
|
||||
"calendar": {
|
||||
"apply-button": "Åppľy ŧįmę řäʼnģę",
|
||||
"cancel-button": "Cäʼnčęľ",
|
||||
"select-time": "Ŝęľęčŧ ä ŧįmę řäʼnģę"
|
||||
},
|
||||
"time-range": {
|
||||
|
@ -413,6 +413,8 @@
|
||||
"title": "绝对时间范围"
|
||||
},
|
||||
"calendar": {
|
||||
"apply-button": "",
|
||||
"cancel-button": "",
|
||||
"select-time": ""
|
||||
},
|
||||
"time-range": {
|
||||
|
Loading…
Reference in New Issue
Block a user