update the locale setting, a locale can either be passed in or the function can be called with no arguments to pick up the currently set  <code class="qm-code-highlight-code qm-code-font">moment.locale</code>  . </div><div class="qm-html-paragraph"><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font">TimePicker.update(<span class="hljs-string">'pl'</span>) <span class="hljs-comment">// sets the TimePicker's locale to Poland without affecting the rest of the page.</span></code