Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><code>jQuery.datepicker.regional</code> is updated with each translation object when the DOM is ready:</p> <pre><code>JQuery(function($){ $.datepicker.regional['it'] = { // … } }) </code></pre> <p>Try accessing it similarly:</p> <pre><code>$(function() { console.log(jQuery.datepicker.regional.it) }) </code></pre> <h3>Aside regarding <code>console.log</code></h3> <p><code>console.log</code>ging just the regional object shows all the localization objects because <code>console.log</code> (and sometimes <code>console.dir</code>) <a href="https://stackoverflow.com/questions/7389069/console-log-object-at-current-state">prints a reference</a> to the object, whose properties may have changed by the time you actually look at them in the console. There are definitely some browser idiosyncrasies.</p> <p>For example, in Chrome 25.0.1337.0:</p> <pre><code>var foo = {}; console.dir(foo) // Object: { baz: "bip" } console.log(foo) // Object: {} console.log(foo.baz); // undefined foo.baz = "bip"; var bar = {}; console.dir(bar) // Object: { baz : { foo: 10 }} bar.prototype = new Array; console.log(bar) // Object: { baz : { foo: 10 }} console.log(bar.baz); // undefined bar.baz = { foo: 10 }; </code></pre> <p>While in Firefox 17.0 + Firebug 1.9.2:</p> <pre><code>var foo = {}; console.dir(foo) // Object: { } console.log(foo) // Object: { baz: "bip" } console.log(foo.baz); // undefined foo.baz = "bip"; var bar = {}; console.dir(bar) // Object: {} bar.prototype = new Array; console.log(bar) // Object: { baz : { foo: 10 }} console.log(bar.baz); // undefined bar.baz = { foo: 10 }; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload