Date: May 10, 2006
Component: Calendar
Version: v0.10.0
This example illustrates an implementation of a simple 1-up calendar with display names for month and day internationalized. The original request for this example included a code sample that got very close to the solution. In that code sample, the author posted code that created the calendar instance (cal1) and configured its Locale object as follows:
Note: Currently, one of our examples illustrates modifing the customConfig member on the instance's prototype (as in this.cal1.prototype.customConfig = ... in line 1 above; this is incorrect, and you should modify the customConfig member directly on the instance).
In the current version of Calendar, one more step is required after defining customConfig, and that step involves applying the configuration to your instance. It's an additional step that we'll remove in a future version, but for now the solution is quite simple — just apply the include the folloiwng line of code prior to rendering:
The call to setupConfig will apply your changes and you'll see those reflected in the calendar when it renders.
— Eric Miraglia, Yahoo Presentation Platform Engineering
(c)2006-2007 Yahoo Inc.