churocket
churocket

Reputation: 11

Dojo Calendar is only showing numbers instead of month names

I currently have a problem with Dojo's calendar. It doesn't seem to be showing the name of the month when the locale is switched to zh-tw.

Instead of getting:

一月 二月 三月 。。。

we get

1 2 3 ...

We don't have this problem when Dojo the locale is set to en. This is somewhat related to https://bugs.dojotoolkit.org/ticket/10490.

Anyone have a clue as to how to fix this? :)

Thanks!

Upvotes: 1

Views: 354

Answers (1)

Dimitri Mestdagh
Dimitri Mestdagh

Reputation: 44665

That's because they implemented it that way. You can look at the source code and see that the months are numbered. You can even compare it to the English version.

As far as I know there is no way to extend or override this, so you will have to extend the dijit.Calendar._MonthDropDown yourself and hardcode it (not that this is a best practice).

Upvotes: 1

Related Questions