Most of the localization options are for title tooltips over icons.
You can provide localization options to override the tooltips as well as the day/month display.
You could also set this globally via tempusDominus.DefaultOptions.localization = { ...
} or by
creating a variable e.g. const ru = { today:'Перейти сегодня' ... }; then provide
the options
as
Accepts: DateTimeFormatOptions Defaults:{ month: 'long', year: '2-digit' }
This should be an appropriate value from the Intl.DateFormat options.
locale
Defaults: default
This should be a BCP 47 language tag or a value supported by Intl.
startOfTheWeek
Accepts: 0-6 Defaults: 0
Changes the start of the week to the provided index. Intl/Date does not provide apis to get the
locale's start of the week. 0 = Sunday, 6 = Saturday. If you want the calendar view to start on Monday,
set this option to 1.
maxWeekdayLength
Accepts: number Defaults: 0
If provided the weekday string will be truncated to this length. This is useful when the Intl values are too long.
hourCycle
Accepts: 'h11' | 'h12' | 'h23' | 'h24' Defaults: undefined
Changes how the hours are displayed. If left undefined, the picker will attempt to guess.
Here is how the different options affect the start and end of the day.
Hour Cycle
Midnight
Night
Notes
h11
00 AM
11 PM
If your locale uses this please let me know.
h12
12 AM
11 PM
h23
00
23
h24
01
24
If your locale uses this please let me know.
dateFormats
These options describe shorthand format strings.
LTS
Long form time format.
LT
Short time format.
L
Standard date format.
LL
Long form date format. US default is July 4, 2022.
LLL
Long form date/time format. US default is July 4, 2022 9:30 AM.
LLLL
Long form date/time format with weekday. US default is Monday, July 4, 2022 9:30 AM.
ordinal
Function to convert cardinal numbers to ordinal numbers, e.g. 3 -> third.
format
Default tokenized format to use. This can be "L" or "dd/MM/yyyy".
toggleAriaLabel
The aria-label to use for the toggle button. Defaults to "Change date", unless one more or dates is selected, in which case it will be "Change date, {dates}".