Internationalization: Translate CalendarFooter component (#58326)

This commit is contained in:
Laura Fernández 2022-11-07 14:42:20 +01:00 committed by GitHub
parent 97df6e682e
commit e5d4d00c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import React from 'react';
import { GrafanaTheme2 } from '@grafana/data'; import { GrafanaTheme2 } from '@grafana/data';
import { useStyles2 } from '../../../themes'; import { useStyles2 } from '../../../themes';
import { Trans } from '../../../utils/i18n';
import { Button } from '../../Button'; import { Button } from '../../Button';
import { TimePickerCalendarProps } from './TimePickerCalendar'; import { TimePickerCalendarProps } from './TimePickerCalendar';
@ -14,10 +15,10 @@ export function Footer({ onClose, onApply }: TimePickerCalendarProps) {
return ( return (
<div className={styles.container}> <div className={styles.container}>
<Button className={styles.apply} onClick={onApply}> <Button className={styles.apply} onClick={onApply}>
Apply time range <Trans i18nKey="time-picker.calendar.apply-button">Apply time range</Trans>
</Button> </Button>
<Button variant="secondary" onClick={onClose}> <Button variant="secondary" onClick={onClose}>
Cancel <Trans i18nKey="time-picker.calendar.cancel-button">Cancel</Trans>
</Button> </Button>
</div> </div>
); );

View File

@ -413,6 +413,8 @@
"title": "Absoluter Zeitbereich" "title": "Absoluter Zeitbereich"
}, },
"calendar": { "calendar": {
"apply-button": "",
"cancel-button": "",
"select-time": "" "select-time": ""
}, },
"time-range": { "time-range": {

View File

@ -413,6 +413,8 @@
"title": "Absolute time range" "title": "Absolute time range"
}, },
"calendar": { "calendar": {
"apply-button": "Apply time range",
"cancel-button": "Cancel",
"select-time": "Select a time range" "select-time": "Select a time range"
}, },
"time-range": { "time-range": {

View File

@ -413,6 +413,8 @@
"title": "Intervalo de tiempo absoluto" "title": "Intervalo de tiempo absoluto"
}, },
"calendar": { "calendar": {
"apply-button": "",
"cancel-button": "",
"select-time": "" "select-time": ""
}, },
"time-range": { "time-range": {

View File

@ -413,6 +413,8 @@
"title": "Période temporelle absolue" "title": "Période temporelle absolue"
}, },
"calendar": { "calendar": {
"apply-button": "",
"cancel-button": "",
"select-time": "" "select-time": ""
}, },
"time-range": { "time-range": {

View File

@ -413,6 +413,8 @@
"title": "Åþşőľūŧę ŧįmę řäʼnģę" "title": "Åþşőľūŧę ŧįmę řäʼnģę"
}, },
"calendar": { "calendar": {
"apply-button": "Åppľy ŧįmę řäʼnģę",
"cancel-button": "Cäʼnčęľ",
"select-time": "Ŝęľęčŧ ä ŧįmę řäʼnģę" "select-time": "Ŝęľęčŧ ä ŧįmę řäʼnģę"
}, },
"time-range": { "time-range": {

View File

@ -413,6 +413,8 @@
"title": "绝对时间范围" "title": "绝对时间范围"
}, },
"calendar": { "calendar": {
"apply-button": "",
"cancel-button": "",
"select-time": "" "select-time": ""
}, },
"time-range": { "time-range": {