mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Calendar: Add labels for next/previous month (#89019)
add labels for next/previous month
This commit is contained in:
parent
09e74acc94
commit
09dfdef378
@ -5,6 +5,7 @@ import Calendar from 'react-calendar';
|
||||
import { GrafanaTheme2, dateTimeParse, DateTime, TimeZone } from '@grafana/data';
|
||||
|
||||
import { useStyles2 } from '../../../themes';
|
||||
import { t } from '../../../utils/i18n';
|
||||
import { Icon } from '../../Icon/Icon';
|
||||
import { adjustDateForReactCalendar } from '../utils/adjustDateForReactCalendar';
|
||||
|
||||
@ -24,7 +25,9 @@ export function Body({ onChange, from, to, timeZone }: TimePickerCalendarProps)
|
||||
tileClassName={styles.title}
|
||||
value={value}
|
||||
nextLabel={<Icon name="angle-right" />}
|
||||
nextAriaLabel={t('time-picker.calendar.next-month', 'Next month')}
|
||||
prevLabel={<Icon name="angle-left" />}
|
||||
prevAriaLabel={t('time-picker.calendar.previous-month', 'Previous month')}
|
||||
onChange={onCalendarChange}
|
||||
locale="en"
|
||||
/>
|
||||
|
@ -1744,6 +1744,8 @@
|
||||
"apply-button": "Apply time range",
|
||||
"cancel-button": "Cancel",
|
||||
"close": "Close calendar",
|
||||
"next-month": "Next month",
|
||||
"previous-month": "Previous month",
|
||||
"select-time": "Select a time range"
|
||||
},
|
||||
"content": {
|
||||
|
@ -1744,6 +1744,8 @@
|
||||
"apply-button": "Åppľy ŧįmę řäʼnģę",
|
||||
"cancel-button": "Cäʼnčęľ",
|
||||
"close": "Cľőşę čäľęʼnđäř",
|
||||
"next-month": "Ńęχŧ mőʼnŧĥ",
|
||||
"previous-month": "Přęvįőūş mőʼnŧĥ",
|
||||
"select-time": "Ŝęľęčŧ ä ŧįmę řäʼnģę"
|
||||
},
|
||||
"content": {
|
||||
|
Loading…
Reference in New Issue
Block a user