code-section"><h3>JavaScript</h3><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font">hx.preferences.supportedLocales = [<span class="hljs-string">'en-gb'</span>, <span class="hljs-string">'de'</span>, <span class="hljs-string">'en-us'</span>, <span class="hljs-string">'be'</span>]
hx.select(<span class="hljs-string">'#pref'</span>).on(<span class="hljs-string">'click'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></s