How can see, in Russian file in months and monthsShort properties contains functions not arrays. This functions have tow static properties -- s where saved months in the nominative case and f for months in the accusative case.
Let's see how daterangepicker.component.html handle months names:
In Russian localisation this.locale.monthNames contains function, not array, that's why it return undefined, and instead of month name will be nothing.
Versions
Describe the bug When set Russian localisation, months names vanished.
To Reproduce For reproduce the bug, you can take your demo from
demo/src/app/locale
, and instead of France import Russian localisation.Full code of locale.component.ts:
Expected behavior In Russian localisation must be short and full names of months.
Screenshots![Screenshot from 2023-02-14 18-44-34](https://user-images.githubusercontent.com/37422420/218787336-deddee63-48e4-442f-be7a-438360589e2a.png)
Additional context I did a little research on the problem and figured out the root cause.
That how looks file of Russian localization in Dayjs:
Let's take a similar French localization file for comparison:
How can see, in Russian file in months and monthsShort properties contains functions not arrays. This functions have tow static properties --
s
where saved months in the nominative case andf
for months in the accusative case.Let's see how daterangepicker.component.html handle months names:
In Russian localisation
this.locale.monthNames
contains function, not array, that's why it returnundefined
, and instead of month name will be nothing.